Click here to download the Blitz Browser!

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

ChromeFirefoxSafariLadybirdServoBlitz
Total15/158/1515/158/1515/15NOT RUN
SubtestChromeFirefoxSafariLadybirdServoBlitz
'rgb(255, 0, 255)' should serialize as '#ff00ff'PASSPASSPASSPASSPASS
'rgba(255, 0, 255, 1)' should serialize as '#ff00ff'PASSPASSPASSPASSPASS
'#ff00ffff' should serialize as '#ff00ff'PASSPASSPASSPASSPASS
'#ff00ff00' should serialize as 'rgba(255, 0, 255, 0)'PASSPASSPASSPASSPASS
'rgba(255, 0, 255, 0)' should serialize as 'rgba(255, 0, 255, 0)'PASSPASSPASSPASSPASS
'color(srgb 1 0 1)' should serialize as 'color(srgb 1 0 1)'PASSFAILPASSFAILPASS
'color(srgb 1 0 1 / 1)' should serialize as 'color(srgb 1 0 1)'PASSFAILPASSFAILPASS
'color(srgb 1 0 1/0)' should serialize as 'color(srgb 1 0 1 / 0)'PASSFAILPASSFAILPASS
'color(srgb 1 none 1)' should serialize as 'color(srgb 1 none 1)'PASSFAILPASSFAILPASS
'color(srgb none -1 2 / 3)' should serialize as 'color(srgb none -1 2)'PASSFAILPASSFAILPASS
'color(display-p3 0.96 0.76 0.79)' should serialize as 'color(display-p3 0.96 0.76 0.79)'PASSFAILPASSFAILPASS
'lab(29% 39 20)' should serialize as 'lab(29 39 20)'PASSFAILPASSFAILPASS
'transparent' should serialize as 'rgba(0, 0, 0, 0)'PASSPASSPASSPASSPASS
'rgb(none none none)' should serialize as '#000000'PASSPASSPASSPASSPASS
'rgb(300 none 400)' should serialize as '#ff00ff'PASSPASSPASSPASSPASS