Re: [csswg-drafts] [css-pseudo-4] Allow to add a marker to each line (#13329)

Something that is useful to note: you could want two different ways of doing it — per wrapped line, and per pre-wrapped line. Example: markers for lines of code, where each pre-formatted line should have a marker, but any further wrapping that happens should not add these. In contrast to the `>` blockquote style, where you _want_ the markers on every line.

If that (and using counters) would be possible with something like `line-emphasis`, that would be great! I imagine that could be an easier path than trying to do actual pseudo-elements. Although, I am not sure how the counter increments will work then, hmm.

In an ideal world, I would vote for having `::nth-line()`, `:nth-last-line()`, and extending which properties those pseudo-elements could apply, as well as solidifying the box model for those. That could be useful for other cases, like https://github.com/w3c/csswg-drafts/issues/13330 (where we could allow `text-align` for those), and https://github.com/w3c/csswg-drafts/issues/8615.

-- 
GitHub Notification of comment by kizu
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13329#issuecomment-3738417266 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 12 January 2026 12:54:12 UTC