File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -1740,8 +1740,12 @@ Range Checking
1740
1740
1741
1741
Parse-time range-checking of values is not performed within ''calc()'' ,
1742
1742
and therefore out-of-range values do not cause the declaration to become invalid.
1743
- However, the used value resulting from an expression
1743
+ However, the value resulting from an expression
1744
1744
must be clamped to the range allowed in the target context.
1745
+ Clamping is performed on computed values to the extent possible,
1746
+ and also on used values
1747
+ if computation was unable to sufficiently simplify the expression
1748
+ to allow range-checking.
1745
1749
1746
1750
Note: This requires all contexts accepting ''calc()''
1747
1751
to define their allowable values as a closed (not open) interval.
@@ -2140,6 +2144,9 @@ Changes
2140
2144
Reverted previous change to allow zero angles to drop their unit;
2141
2145
this will instead be special-cased where needed for backwards-compatibility.
2142
2146
2147
+ Defined that range checking, and any resulting clamping, of ''calc()'' values
2148
+ is performed both at computed time and at used time.
2149
+
2143
2150
Fixed grammar error that disallowed numeric expressions as denominators in ''calc()'' .
2144
2151
2145
2152
Defined handling of font-relative units outside the context of an element.
Original file line number Diff line number Diff line change @@ -1880,8 +1880,12 @@ Range Checking
1880
1880
1881
1881
Parse-time range-checking of values is not performed within [=math functions=] ,
1882
1882
and therefore out-of-range values do not cause the declaration to become invalid.
1883
- However, the used value resulting from an expression
1883
+ However, the value resulting from an expression
1884
1884
must be clamped to the range allowed in the target context.
1885
+ Clamping is performed on computed values to the extent possible,
1886
+ and also on used values
1887
+ if computation was unable to sufficiently simplify the expression
1888
+ to allow range-checking.
1885
1889
1886
1890
Note: This requires all contexts accepting ''calc()''
1887
1891
to define their allowable values as a closed (not open) interval.
You can’t perform that action at this time.
0 commit comments