Bug 153730

Summary: Gradients without unit specifiers are not interoperable
Product: WebKit Reporter: Dean Jackson <dino>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, cdumez, simon.fraser, webkit-bug-importer, zcorpan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Test case none

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.