tab-size-change-1a.html 863 B

12345678910111213141516171819202122232425262728293031323334
  1. <!DOCTYPE html>
  2. <html class="reftest-wait">
  3. <head>
  4. <style type="text/css">
  5. body {
  6. font-family: serif;
  7. padding: 2px;
  8. }
  9. span {
  10. padding: 2px;
  11. }
  12. .a {
  13. -moz-tab-size: 16;
  14. }
  15. </style>
  16. <script type="text/javascript">
  17. function do_test() {
  18. var elem = document.getElementById("test");
  19. elem.removeAttribute('class');
  20. document.documentElement.removeAttribute('class');
  21. };
  22. document.addEventListener("MozReftestInvalidate", do_test, false);
  23. </script>
  24. </head>
  25. <!-- test for modification of tab widths, see comment at
  26. https://bugzilla.mozilla.org/show_bug.cgi?id=631035#c38 -->
  27. <body>
  28. <div style="white-space: pre" id="test" class="a">
  29. <span>one</span>&#9;<span>two</span>&#9;<span>three</span>&#9;<span>four</span>&#9;<span>five</span>
  30. <span>six</span>&#9;<span>seven</span>&#9;<span>eight</span>&#9;<span>nine</span>&#9;<span>ten</span>
  31. </div>
  32. </body>
  33. </html>