Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: dom/html/test/mochitest.toml
<!DOCTYPE HTML>
<html>
<!--
-->
<head>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
<style type="text/css">
.letters {list-style-type: upper-alpha;}
.numbers {list-style-type: decimal;}
</style>
</head>
<body>
<p id="display"></p>
<div id="content" >
<OL id="thelist" class="letters">
<LI id="liA">This list should feature...
<LI id="liB">...letters for each item...
<LI id="li3" class="numbers">...except this one.
</OL>
</div>
<pre id="test">
<script class="testbody" type="text/javascript">
is(computedStyle($("liA"),"list-style-type"),"upper-alpha");
is(computedStyle($("liB"),"list-style-type"),"upper-alpha");
is(computedStyle($("li3"),"list-style-type"),"decimal");
</script>
</pre>
</body>
</html>