Update parsing of RGB() and RGBA() functions to match CSS Color 4
In CSS Color 4, RGB() and RGBA() were synonymized, along with allowing whitespace to separate the channels instead of commas, introducing a backslash as a new way to separate the alpha parameter, and allowing percent values for the alpha parameter. This updates our parsing behavior to reflect these changes, and enables now-passing WPT tests. The new spec is at https://drafts.csswg.org/css-color/#rgb-functions. Bug: 788707 Change-Id: Ib0f29009e477fc88cd1ceda03ff0ebb947a36ea3 Reviewed-on: https://chromium-review.googlesource.com/798831 Commit-Queue: Chris Nardi <hichris123@gmail.com> Reviewed-by:Eric Willigers <ericwilligers@chromium.org> Cr-Commit-Position: refs/heads/master@{#521703}
Showing
Please register or sign in to comment