You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey - yeah basically CSSImageValue becomes a valid CanvasImageSource, I had a PR on HTML to extend it in this way for a while, but will write the monkey patch here for the moment instead...
PaintRenderingContext2D
(https://drafts.css-houdini.org/css-paint-api/#2d-rendering-context) implementsCanvasDrawImage
(https://html.spec.whatwg.org/multipage/canvas.html#canvasdrawimage), which usesCanvasImageSource
as the type of itsimage
argument (https://html.spec.whatwg.org/multipage/canvas.html#canvasimagesource).In examples such as https://github.com/w3c/web-platform-tests/blob/740aba06484bcb174c692175493fa591d29feedd/css-paint-api/paint2d-image.html#L20, the
image
is a URL. It is not obvious from the spec how this should be converted to aCanvasImageSource
. In particular, paint worklets do not have access to theHTMLImageElement
class, as it is not markedExposed=(Window,PaintWorklet)
.The text was updated successfully, but these errors were encountered: