Skip to content

Commit 70744b0

Browse files
committed
support env() in calc()
1 parent cead630 commit 70744b0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

org/w3c/css/parser/analyzer/CssParser.jj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3517,6 +3517,11 @@ CssCheckableValue mathproduct() :
35173517
c.markCssVariable();
35183518
}
35193519
}
3520+
| v2=functionenv() {
3521+
if (v2.getType() == CssTypes.CSS_ENV) {
3522+
c.markCssVariable();
3523+
}
3524+
}
35203525
)
35213526
)
35223527
) {
@@ -3628,6 +3633,7 @@ char operator = ' ';
36283633
| v=mathclamp()
36293634
| v=attr()
36303635
| v=functionvar()
3636+
| v=functionenv()
36313637
) {
36323638
return v;
36333639
}

0 commit comments

Comments
 (0)