summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-lists/ol-change-display-type.html
blob: e711cfef5ddfd0d85914ce166f774a2ec1480f05 (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
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Lists: Change display type of reverse ol list element.</title>
<link rel=help href="https://crbug.com/1020669">
<link rel=match href="ol-change-display-type-ref.html">
<style>
  .item {
    display: list-item;
  }
  .item:after {
    content: counter(section);
    display: list-item;
  }
  .table-header {
    display: table-header-group;
  }
</style>
<body>
  <ol reversed="reversed">
    <span id="span">
      <figure class="item"></figure>
    </span>
  </ol>
</body>
<script>
  document.body.offsetTop;
  document.getElementById('span').setAttribute('class', 'table-header');
</script>
</html>