Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html class="reftest-wait">
<title>Test dynamic change of the width attribute</title>
<link rel="match" href="mtable-dynamic-width-attribute-003-ref.html"/>
<script>
document.documentElement.addEventListener("TestRendered", () => {
// Modify value of the width attribute.
mtable.setAttribute("width", "400px");
document.documentElement.removeAttribute("class");
});
</script>
<math>
<mtable id="mtable" width="200px">
<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>