Bug 192321

Summary: Support css-color-4 rgb functions
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: CSSAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, ews-watchlist, koivisto, mmaxfield, rniwa, sam, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: BrowserCompat, InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=193038
https://bugs.webkit.org/show_bug.cgi?id=193039
Attachments:
Description Flags
Testcase
none
Patch
none
Archive of layout-test-results from ews100 for mac-sierra
none
Archive of layout-test-results from ews104 for mac-sierra-wk2
none
Archive of layout-test-results from ews116 for mac-sierra
none
Archive of layout-test-results from ews203 for win-future
none
Archive of layout-test-results from ews125 for ios-simulator-wk2
none
Patch zalan: review+

Description Simon Fraser (smfr) 2018-12-03 13:57:02 PST
We should support "rgba(7, 8, 9, 50%)" in colors. Other browsers do.
Comment 1 Simon Fraser (smfr) 2018-12-03 13:57:44 PST
Created attachment 356403 [details]
Testcase
Comment 2 Simon Fraser (smfr) 2018-12-26 12:10:26 PST
Created attachment 358081 [details]
Patch
Comment 3 EWS Watchlist 2018-12-26 13:14:28 PST Comment hidden (obsolete)
Comment 4 EWS Watchlist 2018-12-26 13:14:30 PST Comment hidden (obsolete)
Comment 5 EWS Watchlist 2018-12-26 13:24:07 PST Comment hidden (obsolete)
Comment 6 EWS Watchlist 2018-12-26 13:24:09 PST Comment hidden (obsolete)
Comment 7 EWS Watchlist 2018-12-26 14:02:33 PST Comment hidden (obsolete)
Comment 8 EWS Watchlist 2018-12-26 14:02:42 PST Comment hidden (obsolete)
Comment 9 EWS Watchlist 2018-12-26 14:02:44 PST Comment hidden (obsolete)
Comment 10 EWS Watchlist 2018-12-26 14:02:45 PST Comment hidden (obsolete)
Comment 11 EWS Watchlist 2018-12-26 14:11:32 PST Comment hidden (obsolete)
Comment 12 EWS Watchlist 2018-12-26 14:11:34 PST Comment hidden (obsolete)
Comment 13 Simon Fraser (smfr) 2018-12-26 20:59:53 PST
Created attachment 358098 [details]
Patch
Comment 14 zalan 2019-01-02 11:00:39 PST
Comment on attachment 358098 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=358098&action=review

> Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:511
> +    auto consumeSeparator = [&] () -> bool {

wouldn't "auto consumeSeparator = [&] {" just work?

> Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:533
> +    auto consumeAlphaSeparator = [&] () {

() can be dropped.
Comment 15 Simon Fraser (smfr) 2019-01-02 13:00:18 PST
https://trac.webkit.org/r239574
Comment 16 Radar WebKit Bug Importer 2019-01-02 13:01:44 PST
<rdar://problem/47008951>