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-002.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-002-ref.html"/>
  <script>
    document.documentElement.addEventListener("TestRendered", () => {
      // Remove width attribute from mtable.
      mtable.removeAttribute("width");
      document.documentElement.removeAttribute("class");
    });
  </script>
  <math>
    <mtable id="mtable" width="400px">
      <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>