Bug 178987

Summary: [Conic Gradients] Add support for parsing conic gradients
Product: WebKit Reporter: Sam Weinig <sam>
Component: New BugsAssignee: Sam Weinig <sam>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, sabouhallawa, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 146113    
Attachments:
Description Flags
Patch
none
Patch
none
Patch dino: review+

Sam Weinig
Reported 2017-10-29 08:31:11 PDT
[Conic Gradients] Add support for parsing conic gradients
Attachments
Patch (31.89 KB, patch)
2017-10-29 08:47 PDT, Sam Weinig
no flags
Patch (31.82 KB, patch)
2017-10-29 08:53 PDT, Sam Weinig
no flags
Patch (32.44 KB, patch)
2017-10-29 09:00 PDT, Sam Weinig
dino: review+
Sam Weinig
Comment 1 2017-10-29 08:47:16 PDT
Sam Weinig
Comment 2 2017-10-29 08:50:30 PDT
Note: This doesn't support double position color hint syntax yet. This seems like something that should be supporter for all gradients or none, and, since it is just sugar over using two hints, I opted to leave it out of the first change.
Sam Weinig
Comment 3 2017-10-29 08:53:19 PDT
Sam Weinig
Comment 4 2017-10-29 08:58:48 PDT
One thing I am not sure of is if all the CSS text results in the test case are correct. e.g should "at center" map to "at center center" and should "hsl(0,0%,75%)" map to "rgb(191, 191, 191)"?
Sam Weinig
Comment 5 2017-10-29 09:00:45 PDT
Dean Jackson
Comment 6 2017-10-29 14:38:09 PDT
Comment on attachment 325286 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=325286&action=review > LayoutTests/ChangeLog:9 > + [Conic Gradients] Add support for parsing conic gradients > + https://bugs.webkit.org/show_bug.cgi?id=178987 > + > + Reviewed by NOBODY (OOPS!). > + > + * fast/gradients/conic-gradient-parsing-expected.txt: Added. > + * fast/gradients/conic-gradient-parsing.html: Added. Would be nice if these could be WPT proposals in http/wpt/ > LayoutTests/fast/gradients/conic-gradient-parsing.html:50 > + for(var x = 0; x < 500; x++) Nit: space after for > LayoutTests/fast/gradients/conic-gradient-parsing.html:51 > + s += "white " + (x/500) + "%, " + ((2 * x + 1) / 1000) + "%, "; Nit: s += `white ${x/500}%, ${(2 * x + 1) / 1000}%, `;
Sam Weinig
Comment 7 2017-10-29 16:07:47 PDT
Radar WebKit Bug Importer
Comment 8 2017-11-15 12:35:21 PST
Note You need to log in before you can comment on or make changes to this bug.