table-repaint-b.html 837 B

123456789101112131415161718192021222324252627282930
  1. <!DOCTYPE html>
  2. <html class="reftest-wait"><head>
  3. <title>table-repaint-b-ref</title>
  4. <body>
  5. <table id="x">
  6. <tr>
  7. <td>aaa</td>
  8. <td>
  9. <span style="position: relative">
  10. <div style="height: 0px">
  11. <div style="height: 300px; width: 10px; background: green"></div>
  12. </div>bbb
  13. </td>
  14. </tr>
  15. </table>
  16. <script>
  17. function foo() {
  18. var t = document.getElementById("x");
  19. var r = document.createElement("tr");
  20. var c = document.createElement("td");
  21. c.appendChild(document.createTextNode("longer text: above this, first cell should say 'aaa' while second says 'bbb'. There should be only one green rectangle."));
  22. r.appendChild(c);
  23. t.tBodies[0].appendChild(r);
  24. document.documentElement.removeAttribute("class");
  25. }
  26. document.addEventListener("MozReftestInvalidate", foo, false);
  27. </script>
  28. </body>
  29. </html>