Files
rust_browser/tests/goldens/fixtures/239-counter-with-list-style.html
Zachary D. Rowitsch 71d4c2902c Implement lists and counters with code review fixes (CSS 2.1 §12.4-§12.6)
Add list-style-position (inside/outside), list-style-image, complete
list-style shorthand, and automatic list counters via CounterContext.
Includes code review fixes: add ListStyleImage to is_inherited(), fix
quoted URL parsing in parse_list_style_image() and shorthand expansion,
remove spurious list_marker_width for inside-positioned markers. 6 golden
tests (235-240) and 15 new unit tests added.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-13 23:31:22 -04:00

25 lines
371 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
ol {
counter-reset: custom-counter;
list-style-type: none;
}
li::before {
counter-increment: custom-counter;
content: counter(custom-counter, upper-roman) ". ";
font-weight: bold;
}
</style>
</head>
<body>
<ol>
<li>First (I)</li>
<li>Second (II)</li>
<li>Third (III)</li>
<li>Fourth (IV)</li>
</ol>
</body>
</html>