ladybird/Tests/LibWeb/Ref/input/css/css-counter/counter-reset-remove.html
Manuel Zahariev f972342c27
Some checks are pending
CI / Lagom (arm64, Sanitizer_CI, false, macOS, macos-15, Clang) (push) Waiting to run
CI / Lagom (x86_64, Fuzzers_CI, false, Linux, blacksmith-16vcpu-ubuntu-2404, Clang) (push) Waiting to run
CI / Lagom (x86_64, Sanitizer_CI, false, Linux, blacksmith-16vcpu-ubuntu-2404, GNU) (push) Waiting to run
CI / Lagom (x86_64, Sanitizer_CI, true, Linux, blacksmith-16vcpu-ubuntu-2404, Clang) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (arm64, macOS, macOS-arm64, macos-15) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (x86_64, Linux, Linux-x86_64, blacksmith-8vcpu-ubuntu-2404) (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
LibWeb/CSS: Unit tests for changes to counter definitions
2025-06-03 03:51:42 +02:00

25 lines
756 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<link rel="match" href="../../../expected/css/css-counter/counter-reset-remove-ref.html" />
<style>
div > div::before { content: counter(item) ': '; }
.Res8 { counter-reset: item 8; }
.Inc1 { counter-increment: item 1; }
</style>
<div id="parent" class='Res8'>
<div class='Inc1'>One</div>
<div class='Inc1'>Two</div>
<div class='Inc1'>Three</div>
</div>
<script>
// Two nested requestAnimationFrame() calls to force code execution _after_ initial paint
requestAnimationFrame(() => {
requestAnimationFrame(() => {
document.getElementById('parent').classList.remove('Res8');
document.documentElement.classList.remove("reftest-wait");
});
});
</script>
</html>