This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 11819 - var c = document.getElementById('canvas'); var ctx = c.getContext('2d'); ctx.drawSvg(SVG_XML_OR_PATH_TO_SVG, dx, dy, dw, dh);
Summary: var c = document.getElementById('canvas'); var ctx = c.getContext('2d'); ctx....
Status: RESOLVED NEEDSINFO
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML Canvas 2D Context (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on: 11488
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-20 07:33 UTC by contributor
Modified: 2011-08-04 05:04 UTC (History)
6 users (show)

See Also:


Attachments

Description contributor 2011-01-20 07:33:14 UTC
Specification: http://www.w3.org/TR/2dcontext/
Section: http://www.whatwg.org/specs/web-apps/current-work/complete.html#top

Comment:
var c = document.getElementById('canvas');
var ctx = c.getContext('2d');
ctx.drawSvg(SVG_XML_OR_PATH_TO_SVG, dx, dy, dw, dh);

Posted from: 113.162.168.144
Comment 1 Boris Zbarsky 2011-01-20 13:00:29 UTC
Wouldn't it make more sense to support passing an <svg> node to drawImage?
Comment 2 Simon Pieters 2011-01-20 13:49:34 UTC
(In reply to comment #1)
> Wouldn't it make more sense to support passing an <svg> node to drawImage?

Opera supports that, FWIW.
Comment 3 Boris Zbarsky 2011-01-20 15:13:45 UTC
So does Gecko.
Comment 4 Ms2ger 2011-01-20 18:51:54 UTC
Time to spec it?
Comment 5 Ian 'Hixie' Hickson 2011-02-11 01:30:12 UTC
What are the intrinsic dimensions of an <svg> node? What should it render, exactly? e.g. what time should it use for animations, should filters that are based on content outside the <svg> be recomputed, should any scripts or events run?

See also bug 11488.
Comment 6 Ian 'Hixie' Hickson 2011-03-05 01:25:05 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.html

Status: Did Not Understand Request
Change Description: no spec change
Rationale: Without solid answers to the questions in comment 5, I'm not sure what to do here.
Comment 7 Michael[tm] Smith 2011-08-04 05:04:18 UTC
mass-move component to LC1