Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-counter-styles/counter-style-at-rule/disclosure-styles.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Test: disclosure styles</title>
<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) " ";
}
div { font: 16px system-ui; margin: 1em; border: 1px solid gray; }
::marker { font-family: inherit; }
</style>
<div style="width: 10em">
<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
</div>
<div style="writing-mode: vertical-lr; height: 10em;">
<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
</div>
<div style="writing-mode: vertical-rl; height: 10em;">
<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
</div>