Skip to content

Commit 03d17ab

Browse files
committed
[css-values-4] Clarify that Quirks Mode has no effect on math-function parsing, but functions resolving to numbers might be okay due to quirks. #4874
1 parent a8ee265 commit 03d17ab

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

css-values-4/Overview.bs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3852,6 +3852,17 @@ Type Checking
38523852
<>s never become "length-like" in ''calc()''.
38533853
They always stay as <>s.
38543854

3855+
Note: In Quirks Mode [[quirks]],
3856+
some properties that would normally only accept <>s
3857+
are defined to also accept <>s,
3858+
interpreting them as ''px'' lengths.
3859+
Like unitless zeroes,
3860+
this has no effect on the parsing or behavior of [=math functions=],
3861+
tho a [=math function=] that resolves to a <> value
3862+
might become valid in Quirks Mode
3863+
(and have its result interpreted as a ''px'' length).
3864+
3865+
38553866

38563867
Internal Representation
38573868

0 commit comments

Comments
 (0)