LibWeb: Prevent elements with no layout box from modifying counters

This commit is contained in:
Sam Atkins 2024-07-19 16:09:42 +01:00
commit 696ccc1aa9
Notes: github-actions[bot] 2024-07-26 10:05:23 +00:00
3 changed files with 82 additions and 0 deletions

View file

@ -0,0 +1,8 @@
<style>
p {
counter-increment: a;
}
p::before {
content: counter(a) ": ";
}
</style><p>A<p>B<p>C<p style="display:none">SECRET<p>D<p>E