1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-08 05:27:14 +09:00
ladybird/Tests/LibWeb/Ref/input/css/css-counter/counter-increment-add.html

22 lines
658 B
HTML

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