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>
28 lines
346 B
HTML
28 lines
346 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
ol {
|
|
counter-reset: item;
|
|
list-style-type: none;
|
|
padding-left: 20px;
|
|
}
|
|
li::before {
|
|
counter-increment: item;
|
|
content: counters(item, ".") " ";
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<ol>
|
|
<li>Item
|
|
<ol>
|
|
<li>Sub-item</li>
|
|
<li>Sub-item</li>
|
|
</ol>
|
|
</li>
|
|
<li>Item</li>
|
|
</ol>
|
|
</body>
|
|
</html>
|