[css-images-3] remove && from <linear-color-stop> syntax#8021
[css-images-3] remove && from <linear-color-stop> syntax#8021
Conversation
I assume this was a typo?
|
@tabatkins could you review, and confirm && was a mistake? |
|
For what it's worth, this syntax was introduced many years ago in 7bb4fba?diff=unified#diff-f80d8fc0ac03564f1ec01e8503aeb5bea39694d9b20764727225b00510671de3R2249, initially restricted to Sebastian |
|
Also for what it is worth, Chrome and FF do not parse position(s) before the color as valid, and if it should be allowed, it may be odd to be able to specify both positions before or after the color, but not a color between them. |
|
Yeah, reviewing the diff I'm almost certain it was just a mistake while writing it - it looked reasonable to use an |
c03b2ea changed
<color-stop> = <color> <length-percentage>?to<linear-color-stop> = <color> && <length-percentage>?I believe the
&&was a mistake, since<length-percentage> <color>doesn't seem to be valid?Note: This also affects [css-images-4], which uses the same definition.