Bug 193681
| Summary: | rgba() alpha parameter should default to 100% when omitted | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Dayton Lowell <daytonlowell> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | simon.fraser, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | Mac | ||
| OS: | macOS 10.14 | ||
Dayton Lowell
According to the CSS Color Module Level 4 spec, when using rgba() function, if the 4th parameter(alpha) is omitted, it should default to 100%.
Edge and Safari don't currently do this. Tested with Safari Technology Preview 73.
Chrome and Firefox handle it correctly.
Test: https://codepen.io/TehShrike/pen/MLYajK
Spec: https://www.w3.org/TR/css-color-4/#rgb-functions
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Simon Fraser (smfr)
I fixed this in http://trac.webkit.org/r239574. Please test STP 74 when it comes out.
Radar WebKit Bug Importer
<rdar://problem/47459951>
Dayton Lowell
Thanks Simon!
Dayton Lowell
Confirmed fixed in STP 74. Thanks again!