RESOLVED CONFIGURATION CHANGED Bug 153730
Gradients without unit specifiers are not interoperable
https://bugs.webkit.org/show_bug.cgi?id=153730
Summary Gradients without unit specifiers are not interoperable
Dean Jackson
Reported 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.
Attachments
Test case (606 bytes, text/html)
2016-01-31 15:12 PST, Dean Jackson
no flags
Dean Jackson
Comment 1 2016-01-31 15:12:42 PST
smfr says there are also differences in quirks v standards mode
Radar WebKit Bug Importer
Comment 2 2016-01-31 15:13:27 PST
Simon Pieters (:zcorpan)
Comment 3 2016-01-31 15:14:35 PST
Implementing https://quirks.spec.whatwg.org/#the-hashless-hex-color-quirk per spec would maybe fix this.
Simon Pieters (:zcorpan)
Comment 4 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
Simon Fraser (smfr)
Comment 5 2016-09-26 10:55:23 PDT
Possibly related: bug 155874
Ahmad Saleem
Comment 6 2022-09-23 05:40:31 PDT
There is no difference in attached test case across all other browsers (Chrome Canary 108, Firefox Nightly 107 and Safari Technology Preview 154). First two square / rectangular has gradient from top to bottom starting from bad and third square / rectangular from the right side to left with same pattern. Is something further required? Thanks!
Alexey Proskuryakov
Comment 7 2022-09-29 18:08:55 PDT
Let's say "no", as identical rendering is interoperable. Someone can file a follow-up bug if needed.
Note You need to log in before you can comment on or make changes to this bug.