Files
rust_browser/tests/goldens/expected/038-inline-link.dl.txt
Zachary D. Rowitsch 7a8b78f148 Only generate list markers for display: list-item elements (CSS spec §12.5)
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>
2026-02-28 10:14:06 -05:00

990 B