Bug 19677 - Add <canvas>.supportsContext(DOMString contextId, any... arguments)
Summary: Add <canvas>.supportsContext(DOMString contextId, any... arguments)
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Silvia Pfeiffer
QA Contact: HTML WG Bugzilla archive list
Depends on:
Reported: 2012-10-23 20:55 UTC by Edward O'Connor
Modified: 2012-11-04 10:43 UTC (History)
4 users (show)

See Also:


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:

The work to implement <canvas>.supportsContext in WebKit is being tracked in

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:

Rationale: adopted resolution by WHATWG