RESOLVED INVALID207439
conic-gradient() incorrectly accepts unitless zero angles
https://bugs.webkit.org/show_bug.cgi?id=207439
Summary conic-gradient() incorrectly accepts unitless zero angles
Emilio Cobos Álvarez (:emilio)
Reported 2020-02-09 06:32:11 PST
Safari accepts `document.body.style.backgroundImage = "conic-gradient(yellow 0, blue 360deg)"` and so on. I think that's invalid per spec. I don't see anything in https://drafts.csswg.org/css-images-4/#funcdef-conic-gradient which would say that zero is a valid angle value in this context. See https://bugs.chromium.org/p/chromium/issues/detail?id=1050395 too.
Attachments
Emilio Cobos Álvarez (:emilio)
Comment 1 2020-02-09 06:36:51 PST
Err, apparently https://drafts.csswg.org/css-images-4/#valdef-conic-gradient-angle does mention unitless zero. Oh well, kinda unfortunate.
Note You need to log in before you can comment on or make changes to this bug.