Previously, marker generation checked the HTML tag name ("li") and
required a list parent (ul/ol/dir/menu). This caused <li> elements
styled with display: table-cell or display: table to incorrectly
show bullet markers. Per CSS spec, list-style only applies to elements
with display: list-item, regardless of tag name or parent.
Adds Display::ListItem variant, parses "list-item" CSS keyword, updates
UA stylesheet to give <li> display: list-item instead of block, and
replaces the tag-name-based marker check with a display-based check.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1.7 KiB
1.7 KiB