Status: FAIL | Duration: 5ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-counter-styles/counter-style-at-rule/disclosure-open-vs-closed-001.html
<!DOCTYPE html> <meta charset="utf-8"> <title>Counter styles extending disclosure-closed and disclosure-open render differently (horizontal-tb)</title> <link rel="help" href="https://drafts.csswg.org/css-counter-styles-3/#disclosure-closed"> <link rel="help" href="https://drafts.csswg.org/css-counter-styles-3/#disclosure-open"> <link rel="author" title="Ananya Anand" href="mailto:t-anaanand@microsoft.com"> <link rel="mismatch" href="disclosure-open-vs-closed-001-notref.html"> <link rel="stylesheet" href="/fonts/ahem.css"> <meta name="flags" content="ahem"> <meta name="assert" content="In horizontal-tb, disclosure-closed points toward the inline-end while disclosure-open points toward the block-end, so counter styles extending them render differently."> <style> @counter-style closed-ext { system: extends disclosure-closed; } .cell { width: 160px; height: 160px; display: flex; align-items: center; justify-content: center; font: 100px/1 Ahem; } .m::before { content: counter(x, closed-ext); } </style> <div class="cell"><span class="m" style="writing-mode: horizontal-tb; direction: ltr"></span></div>
/css/css-counter-styles/counter-style-at-rule/disclosure-open-vs-closed-001-notref.html
<!DOCTYPE html> <meta charset="utf-8"> <title>Reference: counter style extending disclosure-open (horizontal-tb)</title> <link rel="stylesheet" href="/fonts/ahem.css"> <style> @counter-style open-ext { system: extends disclosure-open; } .cell { width: 160px; height: 160px; display: flex; align-items: center; justify-content: center; font: 100px/1 Ahem; } .m::before { content: counter(x, open-ext); } </style> <div class="cell"><span class="m" style="writing-mode: horizontal-tb; direction: ltr"></span></div>