Intent to implement & ship: canvas2d getContextAttributes method
29 views
Skip to first unread message
Jonathan Kew
unread,
Jul 25, 2023, 2:36:18 PM7/25/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dev-pl...@mozilla.org
As of Firefox 117, I intend to implement the getContextAttributes()
method of the CanvasRenderingContext2D interface.
getContextAttributes allows content to query the attributes that were
set when creating a CanvasRenderingContext2D; this may be needed because
just calling getContext("2d", [options]) on a <canvas> will return a
pre-existing context for the canvas element, if there is one, even if it
was created with different options. So a script that cares about the
options may want to verify what it got back from getContext().