mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Add one of the two documented constructors to ImageData
Also adds the IDL types: - dictionary ImageDataSettings - enum PredefinedColorSpace.
This commit is contained in:
parent
6adf1be06b
commit
30a02fef91
Notes:
sideshowbarker
2024-07-17 18:08:55 +09:00
Author: https://github.com/kennethmyhra
Commit: 30a02fef91
Pull-request: https://github.com/SerenityOS/serenity/pull/23692
Reviewed-by: https://github.com/awesomekling
5 changed files with 52 additions and 2 deletions
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
let imageData = new ImageData(100, 100);
|
||||
println(imageData.data);
|
||||
println(imageData.data.length);
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue