LibWeb: Add one of the two documented constructors to ImageData

Also adds the IDL types:
- dictionary ImageDataSettings
- enum PredefinedColorSpace.
This commit is contained in:
Kenneth Myhra
2024-03-23 21:45:59 +01:00
committed by Andreas Kling
parent 6adf1be06b
commit 30a02fef91
Notes: sideshowbarker 2024-07-17 18:08:55 +09:00
5 changed files with 52 additions and 2 deletions

View File

@@ -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>