Bug 1839315: part 4) Link from `SheetLoadData::mWasAlternate` to spec. r=emilio DONTBUILD
[gecko.git] / layout / style / test / test_html_attribute_computed_values.html
blob74e5b9754a3ba9d4b66a4e1efe261277460370eb
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=
5 -->
6 <head>
7 <title>Test for Bug </title>
8 <script src="/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
10 </head>
11 <body>
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=">Mozilla Bug </a>
13 <div id="content"></div>
14 <pre id="test">
15 <script type="application/javascript">
18 var gValues = [
20 element: "<li type='i'></li>",
21 property: "list-style-type",
22 value: "lower-roman"
25 element: "<li type='I'></li>",
26 property: "list-style-type",
27 value: "upper-roman"
30 element: "<li type='a'></li>",
31 property: "list-style-type",
32 value: "lower-alpha"
35 element: "<li type='A'></li>",
36 property: "list-style-type",
37 value: "upper-alpha"
40 element: "<li type='1'></li>",
41 property: "list-style-type",
42 value: "decimal"
45 element: "<ol type='i'></ol>",
46 property: "list-style-type",
47 value: "lower-roman"
50 element: "<ol type='I'></ol>",
51 property: "list-style-type",
52 value: "upper-roman"
55 element: "<ol type='a'></ol>",
56 property: "list-style-type",
57 value: "lower-alpha"
60 element: "<ol type='A'></ol>",
61 property: "list-style-type",
62 value: "upper-alpha"
65 element: "<ol type='1'></ol>",
66 property: "list-style-type",
67 value: "decimal"
71 var content = document.getElementById("content");
72 for (var i = 0; i < gValues.length; ++i) {
73 var v = gValues[i];
75 content.innerHTML = v.element;
76 is(getComputedStyle(content.firstChild, "").getPropertyValue(v.property),
77 v.value,
78 v.property + " for " + v.element);
81 </script>
82 </pre>
83 </body>
84 </html>