css/css-color/parsing/
alpha-color-computed.html
Fails: 22 of 24 assertions match, 2 do not; 1 more could not be judged
A parsing and computed-value check: each value the parser must accept or reject, and what it computes to.
| Why some could not be judged | Assertions |
|---|---|
| No assertion with written values to accept or reject | 1 |
Run it in the playgroundThe fileOn GitHubBrowsers’ results on wpt.fyi
Each assertion
Every row shows what the file expected and what the engine returned, whether they match or not.
| Assertion | Expected | Got | Verdict |
|---|---|---|---|
Property color value 'alpha(from red / none)' | color(srgb 1 0 0 / none) | color(srgb 1 0 0 / 0) | Fails |
Property color value 'color-mix(in srgb, rgb(255 0 0 / 0.5), alpha(from red / none))' | color(srgb 1 0 0 / 0.5) | color(srgb 1 0 0 / 0.25) | Fails |
Property color value 'alpha(from red / 0.5)' | color(srgb 1 0 0 / 0.5) | color(srgb 1 0 0 / 0.5) | Passes |
Property color value 'alpha(from blue / 0)' | color(srgb 0 0 1 / 0) | color(srgb 0 0 1 / 0) | Passes |
Property color value 'alpha(from rebeccapurple / 1)' | color(srgb 0.4 0.2 0.6) | color(srgb 0.4 0.2 0.6) | Passes |
Property color value 'alpha(from red / 50%)' | color(srgb 1 0 0 / 0.5) | color(srgb 1 0 0 / 0.5) | Passes |
Property color value 'alpha(from red / 0%)' | color(srgb 1 0 0 / 0) | color(srgb 1 0 0 / 0) | Passes |
Property color value 'alpha(from red / 2)' | color(srgb 1 0 0) | color(srgb 1 0 0) | Passes |
Property color value 'alpha(from red / -1)' | color(srgb 1 0 0 / 0) | color(srgb 1 0 0 / 0) | Passes |
Property color value 'alpha(from rgba(255, 0, 0, 0.3) / 0.8)' | color(srgb 1 0 0 / 0.8) | color(srgb 1 0 0 / 0.8) | Passes |
Property color value 'alpha(from color(display-p3 1 0 0) / 0.5)' | color(display-p3 1 0 0 / 0.5) | color(display-p3 1 0 0 / 0.5) | Passes |
Property color value 'alpha(from color(srgb 1 0 0) / 0.5)' | color(srgb 1 0 0 / 0.5) | color(srgb 1 0 0 / 0.5) | Passes |
Property color value 'alpha(from color(srgb 1 0 0) / 50%)' | color(srgb 1 0 0 / 0.5) | color(srgb 1 0 0 / 0.5) | Passes |
Property color value 'alpha(from rgba(255, 0, 0, 0.8) / calc(alpha + 0.1))' | color(srgb 1 0 0 / 0.9) | color(srgb 1 0 0 / 0.9) | Passes |
Property color value 'alpha(from rebeccapurple / calc(alpha / 1))' | color(srgb 0.4 0.2 0.6) | color(srgb 0.4 0.2 0.6) | Passes |
Property color value 'alpha(from alpha(from red / 0.5) / calc(alpha + 0.25))' | color(srgb 1 0 0 / 0.75) | color(srgb 1 0 0 / 0.75) | Passes |
Property color value 'alpha(from alpha(from rebeccapurple / 0%) / 100%)' | color(srgb 0.4 0.2 0.6) | color(srgb 0.4 0.2 0.6) | Passes |
Property color value 'alpha(from color-mix(in srgb, red, blue) / 0.5)' | color(srgb 0.5 0 0.5 / 0.5) | color(srgb 0.5 0 0.5 / 0.5) | Passes |
Property color value 'alpha(from rgb(from red r g b) / 0.8)' | color(srgb 1 0 0 / 0.8) | color(srgb 1 0 0 / 0.8) | Passes |
Property color value 'rgb(from alpha(from red / 0.5) r g b / alpha)' | color(srgb 1 0 0 / 0.5) | color(srgb 1 0 0 / 0.5) | Passes |
Property color value 'hsl(from alpha(from red / 0.5) h s l / alpha)' | color(srgb 1 0 0 / 0.5) | color(srgb 1 0 0 / 0.5) | Passes |
Property color value 'lab(from alpha(from lab(50% 20 -30) / 0.5) l a b / alpha)' | lab(50 20 -30 / 0.5) | lab(50 20 -30 / 0.5) | Passes |
Property color value 'oklch(from alpha(from oklch(50% 0.2 120) / 0.5) l c h / alpha)' | oklch(0.5 0.2 120 / 0.5) | oklch(0.5 0.2 120 / 0.5) | Passes |
Property color value 'color(from alpha(from red / 1.5) srgb r g b / calc(alpha - 0.2))' | color(srgb 1 0 0 / 0.8) | color(srgb 1 0 0 / 0.8) | Passes |
Results of the run of 8 November 2026, engine build 1d7a91105. The data behind every page is open.