Bug 153730 - Gradients without unit specifiers are not interoperable
Summary: Gradients without unit specifiers are not interoperable
Status: RESOLVED CONFIGURATION CHANGED
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: 2022-09-29 18:08 PDT (History)
7 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 (:zcorpan) 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 (:zcorpan) 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
Comment 6 Ahmad Saleem 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!
Comment 7 Alexey Proskuryakov 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.