Chromium Code Reviews
DescriptionCSS Conic Gradients: do not support unitless 0 angles
A recent spec change means that 0 is no longer supported as a valid value for angles.
https://github.com/w3c/csswg-drafts/issues/1162#issuecomment-293637767
Linear gradients, like CSS transform, are an exception and are explicitly specified
to support unitless 0, to avoid breaking existing pages:
https://drafts.csswg.org/css-images-3/#linear-gradients
https://drafts.csswg.org/css-transforms/#valdef-transform-rotate
Conic gradients, being a new feature that has not yet shipped in browsers, should
only support angles with explicit units.
https://drafts.csswg.org/css-images-4/#conic-gradients
We update the parsing of conic gradients to reject unitless 0 angles.
BUG=727195
Review-Url: https://codereview.chromium.org/2908053002
Cr-Commit-Position: refs/heads/master@{#475562}
Committed: https://chromium.googlesource.com/chromium/src/+/a3410f5c72de0fecf8772dbeeee95514e57c4cb0
Patch Set 1 #
Messages
Total messages: 12 (8 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||