WPT
wpt / html / canvas / offscreen / the-canvas-state / 2d.state.saverestore.strokeStyle.worker.html
Spec: https://html.spec.whatwg.org/multipage/canvas.html#the-offscreencanvas-interface ↗
Runs: Chrome 155.0.8038.0 (wpt@05fffeacb, 2026-09-02) | Firefox 157.0a1 (wpt@7addae031, 2026-09-02) | Safari 251 preview (wpt@5ce815a83, 2026-08-27) | Ladybird 1.0-410b4 (wpt@ce41a9c47, 2026-09-02) | Servo Servo 0.6 (wpt@09159dcb3, 2026-09-02) | Blitz 188486089 (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 | 4/4 | 4/4 | 4/4 | 4/4 | 4/4 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| save()/restore() restores strokeStyle, for a canvas of size (300, 150). | PASS | PASS | PASS | PASS | PASS | — |
| save() does not modify strokeStyle, for a canvas of size (300, 150). | PASS | PASS | PASS | PASS | PASS | — |
| save()/restore() restores strokeStyle, for a canvas of size (0, 0). | PASS | PASS | PASS | PASS | PASS | — |
| save() does not modify strokeStyle, for a canvas of size (0, 0). | PASS | PASS | PASS | PASS | PASS | — |