Skip to content

Commit c1c4508

Browse files
committed
[css-values-3][css-values-4] Clarify that specs can override the default out-of-range numbers are invalid handling. Fixes #3270
1 parent 5a4a12f commit c1c4508

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

css-values-3/Overview.bs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ Numeric Data Types</h2>
667667

668668
Properties may restrict numeric values to some range.
669669
If the value is outside the allowed range,
670+
unless otherwise specified,
670671
the declaration is invalid and must be <a href="https://www.w3.org/TR/CSS21/conform.html#ignore">ignored</a>.
671672

672673
CSS theoretically supports infinite precision and infinite ranges for all value types;
@@ -2159,6 +2160,15 @@ Changes</h2>
21592160
<li>Defined <<'property'>> syntax to refer to the property without any top-level #-multiplier,
21602161
to make the notation usable with common list-valued property patterns.
21612162
(<a href="https://github.com/w3c/csswg-drafts/issues/3146">Issue 3146</a>)
2163+
<li>Clarified that numeric values outside the allowed range
2164+
are not ignored if a more specific spec defines other handling.
2165+
(<a href="https://github.com/w3c/csswg-drafts/issues/3270">Issue 3270</a>)
2166+
<blockquote>
2167+
Properties may restrict numeric values to some range.
2168+
If the value is outside the allowed range,
2169+
<ins>unless otherwise specified,</ins>
2170+
the declaration is invalid and must be <a href="https://www.w3.org/TR/CSS21/conform.html#ignore">ignored</a>.
2171+
</blockquote>
21622172
</ul>
21632173

21642174
Changes since the <a href="https://www.w3.org/TR/2016/CR-css-values-3-20160929/">29 September 2016 Candidate Recommendation</a> are:

css-values-4/Overview.bs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,7 @@ Numeric Data Types</h2>
784784

785785
Properties may restrict numeric values to some range.
786786
If the value is outside the allowed range,
787+
unless otherwise specified,
787788
the declaration is invalid and must be <a href="https://www.w3.org/TR/CSS21/conform.html#ignore">ignored</a>.
788789

789790
CSS theoretically supports infinite precision and infinite ranges for all value types;

0 commit comments

Comments
 (0)