You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use bracket range notation in syntax grammar [css-values-3][css… (w3c#3894)
* [css-values-3] Tidy bracket range definition
- Fix incorrect heading level & a typo from
8ea8d7d
- Add examples converting the notation to prose.
* [css-values-4] Copy over bracket range definition
These changes were added to Level 3 in
8ea8d7d
and
1265976
(And fix a tabs-vs-spaces error that bikeshed was choking on.)
* [css-backgrounds-3][css-backgrounds-4] Use bracketed range notation
Added bracketed range notation for non-negative values ( [0,∞] )
in these properties & productions:
- <bg-size>
- <line-width>
- border-radius and longhands
- border-image-slice
- border-image-width
- border-image-outset
- <shadow>
NOTE: required re-writing the syntax
(since ony one of the 4 possible lengths has a restriction)
- border-limit and border-clip in level 4
NOTE: these didn't have prose restrictions,
but they also didn't explain how negative values could work.
I added a changes note to level 3 (change since CR),
but not level 4 (not published yet).
* [css-values-3][css-values-4] Export dfn for bracketed range notation
* [css-multicol-1][css-multicol-2] Use bracketed range notation
Added bracketed range notation for non-negative values ( [0,∞] )
or strictly positive integers ( [1,∞] )
in these properties:
- column-width
- column-count
- column-gap
- column-span (level 2)
For column-rule-width, the syntax change was made
for the `<line-width>` production,
in 933d7dd
* [css-flexbox-1] Use bracketed range notation
Added bracketed range notation for non-negative values ( [0,∞] )
in these properties:
- flex-grow
- flex-shrink
Also use it in the prose descriptions for `flex`,
and to replace the made up `<postive-number>` variable
in the examples of common patterns.
Created a new "Changes since the 19 November 2018 CR" section
to include a mention of the update.
The syntax for `flex-basis` will be updated by reference
when `width` is updated.
* [css-counter-styles-3] Use bracketed range notation
Added bracketed range notation for non-negative values ( [0,∞] )
in the following descriptors:
- pad
- additive-symbols
Note: I didn't add any restriction to the integer
in the `system: fixed <integer>` descriptor,
since there was no prose constraint.
But I'm not sure that negative values make sense here.
* Standardize prose for constrained values [css-backgrounds-3][css-counter-styles-3][css-flexbox-1][css-multicol-1][css-values-3][css-values-4]
For all the specs covered by PR w3c#3894.
<<type [0,∞]>>
→ “Negative values are not allowed.”
<<integer [1, ∞]>>
→ “Values must be greater than 0.”
And remove some duplicate phrases.
Added these phrases & the other most commonly used one (“are invalid”)
to the note in CSS Values about prose restrictions.
* [css-values-3][css-values-4] Fix broken entity
Co-authored-by: Tab Atkins Jr <jackalmage@gmail.com>
0 commit comments