[css-images] Typos gradient grammars (original) (raw)
I suggest the following changes in the "expanded" grammar of 3.2.1. radial-gradient() Syntax (css-images-3, the note at the very bottom of the section):
Expanded with the above definitions, the grammar becomes:
radial-gradient() = radial-gradient(
- [ [ circle || ] [ at ]? , |
[ ellipse || <length-percentage>{2} ] [ at <position> ]? , |
- [ [ circle || <length [0,∞]> ] [ at ]? , |
]?[ ellipse || <length-percentage [0,∞]>{2} ] [ at <position> ]? , | [ [ circle | ellipse ] || <extent-keyword> ] [ at <position> ]? , | at <position> ,
- [ , ]+
- ) = closest-corner | closest-side | farthest-corner | farthest-side
I believe that <size>s are missing ranges, and that a type extending to a color is missing, because <color-stop> expands to <color-stop-length> | <color-stop-angle>, which only expand to dimension(s)/percentage(s). I think it should be <color-stop-list> instead, or that <color-stop> should be changed there (css-images-4) to:
- = |
- = |