Add counter-reset, counter-increment properties with scope-based counter tracking during box tree construction. Implement counter(), counters(), and quote keywords (open-quote, close-quote, no-open-quote, no-close-quote) in the content property. Includes code review fixes: removed dead code in counter parser, eliminated wasteful allocation in counter formatting, added counter properties to ComputedStyles::dump(). 4 golden tests added, 2 WPT tests promoted to pass. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
22 lines
317 B
HTML
22 lines
317 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
ol { counter-reset: item; list-style-type: none; }
|
|
li { counter-increment: item; }
|
|
li::before { content: counters(item, ".") " "; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<ol>
|
|
<li>A
|
|
<ol>
|
|
<li>Nested A</li>
|
|
<li>Nested B</li>
|
|
</ol>
|
|
</li>
|
|
<li>B</li>
|
|
</ol>
|
|
</body>
|
|
</html>
|