mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb: Make HTMLVideoElement part of CanvasImageSource union
This commit is contained in:
parent
d8c36ed458
commit
abe1172d70
Notes:
github-actions[bot]
2024-10-05 07:21:47 +00:00
Author: https://github.com/Totto16 🔰
Commit: abe1172d70
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1635
7 changed files with 42 additions and 8 deletions
10
Tests/LibWeb/Text/input/canvas/pattern-from-video.html
Normal file
10
Tests/LibWeb/Text/input/canvas/pattern-from-video.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
let canvas = document.createElement("canvas");
|
||||
let ctx = canvas.getContext("2d");
|
||||
let v = document.createElement("video");
|
||||
println(ctx.createPattern(v, 'repeat'));
|
||||
println("PASS (didn't throw!)");
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue