mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibWeb: Add {,de}serialization steps for DOMMatrix
This commit is contained in:
parent
181424377d
commit
8d2f7cfb58
Notes:
sideshowbarker
2024-07-17 05:00:08 +09:00
Author: https://github.com/kennethmyhra
Commit: 8d2f7cfb58
Pull-request: https://github.com/SerenityOS/serenity/pull/23538
Reviewed-by: https://github.com/ADKaster
5 changed files with 27 additions and 0 deletions
|
@ -21,6 +21,12 @@
|
|||
domMatrixReadOnly = structuredClone(new DOMMatrixReadOnly([10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160]));
|
||||
println(`DOMMatrixReadOnly: ${JSON.stringify(domMatrixReadOnly)}`);
|
||||
|
||||
let domMatrix = structuredClone(new DOMMatrix([10, 20, 30, 40, 50, 60]));
|
||||
println(`instanceOf DOMMatrix: ${domMatrix instanceof DOMMatrix}`);
|
||||
println(`DOMMatrix: ${JSON.stringify(domMatrix)}`);
|
||||
domMatrix = structuredClone(new DOMMatrix([10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160]));
|
||||
println(`DOMMatrix: ${JSON.stringify(domMatrix)}`);
|
||||
|
||||
done();
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue