We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ladybird now supports CSS counters. Nice! 😎 However, content containing counters does not update on changes to counters. On, no! 😦
item
.Inc
counter(item)
content
div::before
div
Expected: The divs should be prefixed by "0" and "1". Actual: The prefixes to the divs stay the same "1" and "2".
<style> div > div::before { content: counter(item) '. '; } .Res4 { counter-reset: item 4; } .Inc1 { counter-increment: item; } .Set8 { counter-set: item 8; } .Fade { opacity: 20%; } </style> <script> window.addEventListener('load', () => { document.getElementById('button').addEventListener('click', (e) => { document.getElementById('zero' ).classList.toggle('Res4'); document.getElementById('five' ).classList.toggle('Inc1'); document.getElementById('six' ).classList.toggle('Inc1'); document.getElementById('eight').classList.toggle('Set8'); document.getElementById('nine' ).classList.toggle('Inc1'); document.querySelectorAll('span').forEach( e => { e.classList.toggle('Fade'); }); }); }); </script> <div id='zero' class='Res4'> <div id='five' class='Inc1'><span>Five </span> <span class='Fade'>Zero</span></div> <div id='six' class='Inc1'><span>Six </span> <span class='Fade'>Zero</span></div> <div id='eight' class='Set8'><span>Eight</span> <span class='Fade'>Zero</span></div> <div id='nine' ><span>Eight</span> <span class='Fade'>One </span></div> </div> <br/> <button id='button'>click this</button>
Firefox:
Ladybird:
The text was updated successfully, but these errors were encountered:
list-item
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
Ladybird now supports CSS counters. Nice! 😎
However, content containing counters does not update on changes to counters. On, no! 😦
Reproduce
item
.Inc
counter(item)
ascontent
indiv::before
.Inc
to two consecutivediv
sdiv
s will be prefixed by the right counters ("1", "2"). Nice!.Inc
from the firstdiv
Expected: The
div
s should be prefixed by "0" and "1".Actual: The prefixes to the
div
s stay the same "1" and "2".A more elaborate example
Firefox:
Ladybird:
The text was updated successfully, but these errors were encountered: