Indeed, if the data in a page&#x27;s canvas has a different origin, you&#x27;re not allowed to read pixels back (<a href="http:&#x2F;&#x2F;www.w3.org&#x2F;TR&#x2F;html&#x2F;scripting-1.html#security-with-canvas-elements" rel="nofollow">http:&#x2F;&#x2F;www.w3.org&#x2F;TR&#x2F;html&#x2F;scripting-1.html#security-with-can...</a>).<p>If the DOM element you draw has the same origin as your canvas it seems like (from my reading of the spec) you should be allowed to do what you describe.