Skip to content

Commit 5a4a12f

Browse files
committed
[css-values-3] Make <'property'> notation drop any top-level #-multiplier so it's actually usable with list-valued property patterns. #3146
1 parent e842010 commit 5a4a12f

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

css-values-3/Overview.bs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ Component value types
9797
types that have the same range of values as a property bearing the same name
9898
(e.g., <<'border-width'>>, <<'background-attachment'>>, etc.).
9999
In this case, the type name is the property name (complete with quotes) between the brackets.
100-
Such a type does not include CSS-wide keywords such as ''inherit''.
100+
Such a type does not include CSS-wide keywords such as ''inherit'',
101+
and also does not include any top-level comma-separated-list multiplier
102+
(i.e. if property pairing is defined as [ <> <>? ]#,
103+
then <<'pairing'>> is equivalent to [ <> <>? ],
104+
not <> <> ]#).
101105

102106
  • 103107
    non-terminals that do not share the same name as a property.
    @@ -2149,6 +2153,14 @@ Acknowledgments
    21492153

    21502154
    Changes
    21512155

    2156+
    2157+
    2158+
      2159+
    • Defined <<'property'>> syntax to refer to the property without any top-level #-multiplier,
    • 2160+
      to make the notation usable with common list-valued property patterns.
      2161+
      2162+
      2163+
      21522164
      21532165

      21542166

        css-values-4/Overview.bs

        Lines changed: 5 additions & 1 deletion
        Original file line numberDiff line numberDiff line change
        @@ -89,7 +89,11 @@ Component value types
        8989
        types that have the same range of values as a property bearing the same name
        9090
        (e.g., <<'border-width'>>, <<'background-attachment'>>, etc.).
        9191
        In this case, the type name is the property name (complete with quotes) between the brackets.
        92-
        Such a type does not include CSS-wide keywords such as ''inherit''.
        92+
        Such a type does not include CSS-wide keywords such as ''inherit'',
        93+
        and also does not include any top-level comma-separated-list multiplier
        94+
        (i.e. if property pairing is defined as [ <> <>? ]#,
        95+
        then <<'pairing'>> is equivalent to [ <> <>? ],
        96+
        not <> <> ]#).
        9397

        9498
      • 9599
        non-terminals that do not share the same name as a property.

        0 commit comments

        Comments
         (0)