Files
serenity/Tests/LibWeb/Layout/input/css-counters/hidden-elements.html
Sam Atkins fc6c6573b1 LibWeb: Prevent elements with no layout box from modifying counters
(cherry picked from commit 696ccc1aa992fdd7e22a44571d8be7d89738261d)
2024-07-28 13:31:02 -04:00

9 lines
143 B
HTML

<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