summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-counter-styles/counter-style-at-rule/disclosure-styles.html
blob: 79ac6ca145d0b435a72469c61d09d0dd4a8c9d03 (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
<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Test: disclosure styles</title>
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org/">
<link rel="help" href="https://drafts.csswg.org/css-counter-styles-3/#disclosure-open">
<link rel="match" href="disclosure-styles-ref.html">
<style type="text/css">
  @counter-style disclosure-closed2 {
    system: extends disclosure-closed;
  }
  @counter-style disclosure-open2 {
    system: extends disclosure-open;
  }
  ul {
    padding: 0;
    list-style-position: inside;
  }
  .closed { list-style-type: disclosure-closed2; }
  .open { list-style-type: disclosure-open2; }
  p::before {
    content: counter(a, disclosure-closed) " ";
  }
</style>
<ul dir="ltr">
  <li class="closed">closed ltr
  <li class="open">open ltr
</ul>
<ul dir="rtl">
  <li class="closed">closed rtl
  <li class="open">open rtl
</ul>
<p dir="ltr">closed ltr
<p dir="rtl">closed rtl