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
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 ignored.
671672

672673
CSS theoretically supports infinite precision and infinite ranges for all value types;
@@ -2159,6 +2160,15 @@ Changes
21592160
  • 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
    2163+
  • Clarified that numeric values outside the allowed range
  • 2164+
    are not ignored if a more specific spec defines other handling.
    2165+
    2166+
    2167+
    Properties may restrict numeric values to some range.
    2168+
    If the value is outside the allowed range,
    2169+
    unless otherwise specified,
    2170+
    the declaration is invalid and must be ignored.
    2171+
    21622172
    21632173

    21642174

    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
    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 ignored.
    788789

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

    0 commit comments

    Comments
     (0)