We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7f942e commit e919c9dCopy full SHA for e919c9d
1 file changed
css-values-3/Overview.bs
@@ -1590,6 +1590,13 @@ Type Checking</h4>
1590
(''cm'' is <<length>>, ''deg'' is <<angle>>, etc.).
1591
An ''attr()'' expression's type is given by its <<type-or-unit>> argument.
1592
1593
+ Note: Because <<number-token>>s are always interpreted as <<number>>s or <<integer>>s,
1594
+ "unitless 0" <<length>>s or <<angle>>s aren't supported in ''calc()''.
1595
+ That is, ''width: calc(0 + 5px);'' is invalid,
1596
+ even though both ''width: 0;''
1597
+ and ''width: 5px;''
1598
+ are valid.
1599
+
1600
If percentages are accepted in the context in which the expression is placed,
1601
a <<percentage-token>> has the type of the value that percentages are relative to.
1602
For example, in the 'width' property, percentages have the <<length>> type,
0 commit comments