ladybird/Tests/LibWeb/Ref/input/css/css-counter/counter-increment-insert-before.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

31 lines
901 B
HTML

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