Bug 19677 - Add <canvas>.supportsContext(DOMString contextId, any... arguments)
Add <canvas>.supportsContext(DOMString contextId, any... arguments)
Status: RESOLVED FIXED
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec
unspecified
PC All
: P2 normal
: ---
Assigned To: Silvia Pfeiffer
HTML WG Bugzilla archive list
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-23 20:55 UTC by Edward O'Connor
Modified: 2012-11-04 10:43 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Edward O'Connor 2012-10-23 20:55:11 UTC
Web authors need a way to detect whether or not different canvas contexts are supported. Currently authors do this by calling <canvas>.getContext, but this can be very expensive.

Dean proposed adding a supportsContext method in http://lists.w3.org/Archives/Public/public-html/2012Sep/0119.html

Ian added <canvas>.supportsContext in r7482 of the WHATWG spec:
http://html5.org/r/7482
https://github.com/w3c/html/commit/6e1081a860afd08e6aa0329032c9cf4106760a27

The work to implement <canvas>.supportsContext in WebKit is being tracked in
https://bugs.webkit.org/show_bug.cgi?id=70117

We should consider pulling this in for HTML5.
Comment 1 Edward O'Connor 2012-10-23 20:56:00 UTC
Assigning to Silvia since the change has been made on the WHATWG side of things.
Comment 4 Silvia Pfeiffer 2012-11-04 10:43:43 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If
you are satisfied with this response, please change the state of
this bug to CLOSED. If you have additional information and would
like the Editor to reconsider, please reopen this bug. If you would
like to escalate the issue to the full HTML Working Group, please
add the TrackerRequest keyword to this bug, and suggest title and
text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this
document:   http://dev.w3.org/html5/decision-policy/decision-policy-v2.html

Status: Accepted
Change Description:
https://github.com/w3c/html/commit/6e1081a860afd08e6aa0329032c9cf4106760a27
https://github.com/w3c/html/commit/90c0786311cd92d5a4fd1c546e6a8a766c6d3b2c

Rationale: adopted resolution by WHATWG