1
0
Fork 0
firefox/testing/web-platform/mozilla/tests/mathml/tables/mtable-dynamic-align-attribute-001.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

40 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<title>Test dynamic change of the align attribute</title>
<link rel="match" href="mtable-dynamic-align-attribute-001-ref.html"/>
<link rel="help" href="https://www.w3.org/TR/MathML3/chapter3.html#presm.mtable"/>
<script>
document.documentElement.addEventListener("TestRendered", () => {
// Attach attribute align="top" to mtable.
mtable.setAttribute("align", "top");
document.documentElement.removeAttribute("class");
});
</script>
<math>
<mspace id="baseline" height="1px" width="100px" style="background: black"/>
<mtable id="mtable">
<mtr>
<mtd>
<mspace width="10px" height="10px" style="background: blue"/>
</mtd>
<mtd>
<mspace width="10px" height="10px" style="background: blue"/>
</mtd>
<mtd>
<mspace width="10px" height="10px" style="background: blue"/>
</mtd>
</mtr>
<mtr>
<mtd>
<mspace width="10px" height="10px" style="background: blue"/>
</mtd>
<mtd>
<mspace width="10px" height="10px" style="background: blue"/>
</mtd>
<mtd>
<mspace width="10px" height="10px" style="background: blue"/>
</mtd>
</mtr>
</mtable>
</math>
</html>