Files
rust_browser/tests/goldens/fixtures/229-counter-upper-roman.html
Zachary D. Rowitsch f17269dbfc Implement CSS 2.1 generated content: counters and quote keywords (§12.3, §12.4)
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>
2026-03-13 21:51:08 -04:00

17 lines
293 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
body { counter-reset: chapter; }
h3 { counter-increment: chapter; }
h3::before { content: counter(chapter, upper-roman) ". "; }
</style>
</head>
<body>
<h3>Chapter One</h3>
<h3>Chapter Two</h3>
<h3>Chapter Three</h3>
<h3>Chapter Four</h3>
</body>
</html>