[Bug 19677] New: Add <canvas>.supportsContext(DOMString contextId, any... arguments)

https://www.w3.org/Bugs/Public/show_bug.cgi?id=19677

          Priority: P2
            Bug ID: 19677
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org
          Assignee: erika.doyle@microsoft.com
           Summary: Add <canvas>.supportsContext(DOMString contextId,
                    any... arguments)
        QA Contact: public-html-bugzilla@w3.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: eoconnor@apple.com
          Hardware: PC
            Status: NEW
           Version: unspecified
         Component: HTML5 spec
           Product: HTML WG

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Tuesday, 23 October 2012 20:55:13 UTC