summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/367220-1.html
blob: 69a8097d9297cc1db483c05cc4d15fd7422e625a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<html>
<head>
<style id="s">
  ol {
    counter-reset: section;
    list-style-type: none;
  }
  li:before {
    counter-increment: section;
    content: counters(section, ".") " ";
  }
</style>

</head>
<body>
<ol>
  <li>item</li>          <!-- 1     -->
  <li>item               <!-- 2     -->
    <ol>
      <li>item</li>      <!-- 2.1   -->
      <li>item</li>      <!-- 2.2   -->
      <li>item           <!-- 2.3   -->
        <ol>
          <li>item</li>  <!-- 2.3.1 -->
          <li>item</li>  <!-- 2.3.2 -->
        </ol>
        <ol>
          <li>item</li>  <!-- 2.3.1 -->
          <li>item</li>  <!-- 2.3.2 -->
          <li>item</li>  <!-- 2.3.3 -->
        </ol>
      </li>
      <li>item</li>      <!-- 2.4   -->
    </ol>
  </li>
  <li>item</li>          <!-- 3     -->
  <li>item</li>          <!-- 4     -->
</ol>
<ol>
  <li>item</li>          <!-- 1     -->
  <li>item</li>          <!-- 2     -->
</ol>

<script>
s = document.getElementById("s");
t = s.textContent;

function foo()
{
  document.body.offsetHeight;
  s.textContent = "ol { color: #ddd}";
  document.body.offsetHeight;
  s.textContent = t;
}
foo();
</script>

</body>
</html>