wpt / css / css-counter-styles / counter-style-at-rule / disclosure-styles.html

Status: FAIL | Duration: 19ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-counter-styles/counter-style-at-rule/disclosure-styles.html

<!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">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<meta name="flags" content="ahem image" />
<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: 20px Ahem; margin: 1em; border: 1px solid gray; }
  ::marker { font-family: system-ui; }
</style>
<div style="width: 10em">
<ul dir="ltr">
  <li class="closed">CL
  <li class="open">OL
</ul>
<ul dir="rtl">
  <li class="closed">CR
  <li class="open">OR
</ul>
<p dir="ltr">CL
<p dir="rtl">RL
</div>
<div style="writing-mode: vertical-lr; height: 10em;">
  <ul dir="ltr">
    <li class="closed">CL
    <li class="open">OL
  </ul>
  <ul dir="rtl">
    <li class="closed">CR
    <li class="open">OR
  </ul>
  <p dir="ltr">CL
  <p dir="rtl">CR
</div>
<div style="writing-mode: vertical-rl; height: 10em;">
  <ul dir="ltr">
    <li class="closed">CL
    <li class="open">OL
  </ul>
  <ul dir="rtl">
    <li class="closed">CR
    <li class="open">OR
  </ul>
  <p dir="ltr">CL
  <p dir="rtl">CR
</div>

/css/css-counter-styles/counter-style-at-rule/disclosure-styles-ref.html

<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Reference: symbols function, invalid</title>
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org/">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<meta name="flags" content="ahem image" />
<style type="text/css">
  @counter-style triangle-right {
    system: cyclic;
    symbols: \25b8;
    suffix: ' ';
  }
  @counter-style triangle-left {
    system: cyclic;
    symbols: \25c2;
    suffix: ' ';
  }
  @counter-style triangle-down {
    system: cyclic;
    symbols: \25be;
    suffix: ' ';
  }
  @counter-style triangle-up {
    system: cyclic;
    symbols: \25b4;
    suffix: ' ';
  }

  ul {
    padding: 0;
    list-style-position: inside;
  }

  .t-u { list-style-type: triangle-up; }
  .t-d { list-style-type: triangle-down; }
  .t-r { list-style-type: triangle-right; }
  .t-l { list-style-type: triangle-left; }
  div { font: 20px Ahem; margin: 1em; border: 1px solid gray; }
  li::marker { font-family: system-ui; }
</style>

<div style="width: 10em;">
<ul dir="ltr">
  <li class="t-r">CL
  <li class="t-d">OL
</ul>
<ul dir="rtl">
  <li class="t-l">CR
  <li class="t-d">OR
</ul>
<p dir="ltr">&#x25b8;&nbsp;CL
<p dir="rtl">&#x25c2;&nbsp;CR
</div>
<div style="writing-mode: vertical-lr; height: 10em;">
<ul dir="ltr">
  <li class="t-d">CL
  <li class="t-r">OL
</ul>
<ul dir="rtl">
  <li class="t-u">CR
  <li class="t-r">OR
</ul>
<p dir="ltr">&#x25be;&nbsp;CL
<p dir="rtl">&#x25b4;&nbsp;CR
</div>
<div style="writing-mode: vertical-rl; height: 10em;">
<ul dir="ltr">
  <li class="t-d">CL
  <li class="t-l">OL
</ul>
<ul dir="rtl">
  <li class="t-u">CR
  <li class="t-l">OR
</ul>
<p dir="ltr">&#x25be;&nbsp;CL
<p dir="rtl">&#x25b4;&nbsp;CR
</div>