Bug 207439
| Summary: | conic-gradient() incorrectly accepts unitless zero angles | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Emilio Cobos Álvarez (:emilio) <emilio> |
| Component: | CSS | Assignee: | 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)
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Emilio Cobos Álvarez (:emilio)
Err, apparently https://drafts.csswg.org/css-images-4/#valdef-conic-gradient-angle does mention unitless zero. Oh well, kinda unfortunate.