WPT
wpt / html / canvas / color.window.html
Spec: https://html.spec.whatwg.org/multipage/canvas.html#2dcontext ↗
Runs: Chrome 155.0.8038.0 (wpt@397d01d8e, 2026-09-02) | Firefox 157.0a1 (wpt@397d01d8e, 2026-09-02) | Safari 251 preview (wpt@5ce815a83, 2026-08-27) | Ladybird 1.0-5f6fa (wpt@b1a7025f8, 2026-09-02) | Servo Servo 0.5 (wpt@2ccd2cbf8, 2026-09-01) | Blitz 7727414ca (wpt@a95401e4e, 2026-09-02)
View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 15/15 | 8/15 | 15/15 | 8/15 | 15/15 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| 'rgb(255, 0, 255)' should serialize as '#ff00ff' | PASS | PASS | PASS | PASS | PASS | — |
| 'rgba(255, 0, 255, 1)' should serialize as '#ff00ff' | PASS | PASS | PASS | PASS | PASS | — |
| '#ff00ffff' should serialize as '#ff00ff' | PASS | PASS | PASS | PASS | PASS | — |
| '#ff00ff00' should serialize as 'rgba(255, 0, 255, 0)' | PASS | PASS | PASS | PASS | PASS | — |
| 'rgba(255, 0, 255, 0)' should serialize as 'rgba(255, 0, 255, 0)' | PASS | PASS | PASS | PASS | PASS | — |
| 'color(srgb 1 0 1)' should serialize as 'color(srgb 1 0 1)' | PASS | FAIL | PASS | FAIL | PASS | — |
| 'color(srgb 1 0 1 / 1)' should serialize as 'color(srgb 1 0 1)' | PASS | FAIL | PASS | FAIL | PASS | — |
| 'color(srgb 1 0 1/0)' should serialize as 'color(srgb 1 0 1 / 0)' | PASS | FAIL | PASS | FAIL | PASS | — |
| 'color(srgb 1 none 1)' should serialize as 'color(srgb 1 none 1)' | PASS | FAIL | PASS | FAIL | PASS | — |
| 'color(srgb none -1 2 / 3)' should serialize as 'color(srgb none -1 2)' | PASS | FAIL | PASS | FAIL | PASS | — |
| 'color(display-p3 0.96 0.76 0.79)' should serialize as 'color(display-p3 0.96 0.76 0.79)' | PASS | FAIL | PASS | FAIL | PASS | — |
| 'lab(29% 39 20)' should serialize as 'lab(29 39 20)' | PASS | FAIL | PASS | FAIL | PASS | — |
| 'transparent' should serialize as 'rgba(0, 0, 0, 0)' | PASS | PASS | PASS | PASS | PASS | — |
| 'rgb(none none none)' should serialize as '#000000' | PASS | PASS | PASS | PASS | PASS | — |
| 'rgb(300 none 400)' should serialize as '#ff00ff' | PASS | PASS | PASS | PASS | PASS | — |