Bug 207439 - conic-gradient() incorrectly accepts unitless zero angles
Summary: conic-gradient() incorrectly accepts unitless zero angles
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-09 06:32 PST by Emilio Cobos Álvarez (:emilio)
Modified: 2020-02-10 10:44 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emilio Cobos Álvarez (:emilio) 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.
Comment 1 Emilio Cobos Álvarez (:emilio) 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.