Skip to content

Commit 0cd0557

Browse files
committed
[css-paint-api] Monkey patch CSSImageValue into the CanvasImageSource typedef.
Fixes w3c#416.
1 parent b57b101 commit 0cd0557

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

css-paint-api/Overview.bs

+13
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,19 @@ Note: The initial state of the rendering context is set inside the <a>set bitmap
430430
<a>output bitmap</a>.
431431
</div>
432432

433+
Drawing a CSSImageValue {#drawing-a-cssimagevalue}
434+
--------------------------------------------------
435+
436+
The {{CanvasImageSource}} typedef is extended to also include the {{CSSImageValue}} type to be used
437+
as an image source.
438+
439+
For interfaces which use the {{CanvasDrawImage}} mixin:
440+
- When a {{CanvasImageSource}} object represents an {{CSSImageValue}}, the result of invoking
441+
the value's underlying image algorithm must be used as the source image for the purposes of
442+
{{CanvasDrawImage/drawImage}}.
443+
444+
Note: This should eventually be moved to the canvas section of the HTML specification.
445+
433446
Drawing an image {#drawing-an-image}
434447
====================================
435448

0 commit comments

Comments
 (0)