Bug 207439

Summary: conic-gradient() incorrectly accepts unitless zero angles
Product: WebKit Reporter: Emilio Cobos Álvarez (:emilio) <emilio>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: koivisto, simon.fraser
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=205733

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.