test_bug589.html 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!DOCTYPE HTML>
  2. <html>
  3. <!--
  4. https://bugzilla.mozilla.org/show_bug.cgi?id=589
  5. -->
  6. <head>
  7. <title>Test for Bug 589</title>
  8. <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  9. <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
  10. <style type="text/css">
  11. .letters {list-style-type: upper-alpha;}
  12. .numbers {list-style-type: decimal;}
  13. </style>
  14. </head>
  15. <body>
  16. <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=589">Mozilla Bug 589</a>
  17. <p id="display"></p>
  18. <div id="content" >
  19. <OL id="thelist" class="letters">
  20. <LI id="liA">This list should feature...
  21. <LI id="liB">...letters for each item...
  22. <LI id="li3" class="numbers">...except this one.
  23. </OL>
  24. </div>
  25. <pre id="test">
  26. <script class="testbody" type="text/javascript">
  27. /** Test for Bug 589 **/
  28. is(computedStyle($("liA"),"list-style-type"),"upper-alpha");
  29. is(computedStyle($("liB"),"list-style-type"),"upper-alpha");
  30. is(computedStyle($("li3"),"list-style-type"),"decimal");
  31. </script>
  32. </pre>
  33. </body>
  34. </html>