Add reset function to CanvasRenderingContext2D
Categories
(Core :: Graphics: Canvas2D, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox113 | --- | fixed |
People
(Reporter: aaronhk, Assigned: jgilbert)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36
Expected results:
Add CanvasRenderingContext2D.reset(), which resets the rendering context, which includes the backing buffer, the drawing state stack, path, and styles. This is soon to be added to the WHATWG spec https://github.com/whatwg/html/pull/6639
Chromium bug: crbug.com/1131137
Web Platform Tests: https://github.com/web-platform-tests/wpt/tree/master/html/canvas/element/reset
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Canvas: 2D' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Updated•2 years ago
|
Updated•10 months ago
|
Assignee | ||
Comment 3•3 months ago
|
||
Updated•3 months ago
|
Pushed by jgilbert@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/86b04fcd2f98 Add CanvasRenderingContext2D.reset(). r=lsalzman,webidl,smaug
Comment 5•3 months ago
|
||
bugherder |
Updated•3 months ago
|
Comment 6•2 months ago
|
||
FYI MDN docs for this can be tracked in https://github.com/mdn/content/issues/26148 - pretty much compatibility data and release note update.
Description
•