1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:07:35 +00:00

LibWeb: Add DOMMatrix and DOMMatrixReadOnly fromMatrix

This commit is contained in:
Bastiaan van der Plaat 2023-09-03 12:37:29 +02:00 committed by Andreas Kling
parent bbf66ea055
commit ff1bcc694d
8 changed files with 35 additions and 2 deletions

View file

@ -0,0 +1,15 @@
<script src="../include.js"></script>
<script>
test(() => {
let testCounter = 1;
function testPart(part) {
println(`${testCounter++}. ${JSON.stringify(part())}`);
}
// 1. Creating a DOMMatrix
testPart(() => new DOMMatrix([10, 20, 30, 40, 50, 60]));
// 2. Creating a DOMMatrix with fromMatrix
testPart(() => DOMMatrix.fromMatrix({ a: 10, b: 20, c: 30, d: 40, e: 50, f: 60 }));
});
</script>