Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /mathml/tables/mtable-dynamic-width-attribute-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="reftest-wait">
<title>Test dynamic change of the width attribute</title>
<link rel="match" href="mtable-dynamic-width-attribute-001-ref.html"/>
<script>
document.documentElement.addEventListener("TestRendered", () => {
// Attach attribute width="200px" to mtable.
mtable.setAttribute("width", "200px");
document.documentElement.removeAttribute("class");
});
</script>
<math>
<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>