Bug 153730 - Gradients without unit specifiers are not interoperable
Summary: Gradients without unit specifiers are not interoperable
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-01-31 15:12 PST by Dean Jackson
Modified: 2016-09-26 10:55 PDT (History)
4 users (show)

See Also:


Attachments
Test case (606 bytes, text/html)
2016-01-31 15:12 PST, Dean Jackson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dean Jackson 2016-01-31 15:12:00 PST
Created attachment 270350 [details]
Test case

See https://code.google.com/p/chromium/issues/detail?id=569703
which is talking about whether 0 should be handled as 0deg.

However, it's even worse. See the examples in the attached file, where
linear-gradient(95deg, red, blue) is ok
but
linear-gradient(95, red, blue) is parsed with 3 colours.
Comment 1 Dean Jackson 2016-01-31 15:12:42 PST
smfr says there are also differences in quirks v standards mode
Comment 2 Radar WebKit Bug Importer 2016-01-31 15:13:27 PST
<rdar://problem/24430627>
Comment 3 Simon Pieters 2016-01-31 15:14:35 PST
Implementing https://quirks.spec.whatwg.org/#the-hashless-hex-color-quirk per spec would maybe fix this.
Comment 4 Simon Pieters 2016-09-26 03:06:29 PDT
cdumez, want to take a stab at this? :-)

Chromium passes the tests
http://w3c-test.org/quirks-mode/hashless-hex-color.html
Comment 5 Simon Fraser (smfr) 2016-09-26 10:55:23 PDT
Possibly related: bug 155874