Re: [csswg-drafts] [css-overflow-5] Scroll-markers (#10720)

> Is the `content` property required? I don't think the `content` property is necessary if you don't need to generate text.

This is how you tell which elements generate scroll-markers. The initial `content` value of `none` for the `::scroll-marker` pseudo-element is how we know not to generate scroll-markers for every other element.

This is the same model as `::before` and `::after`, and given the scroll-marker should show something, using the `content` property to activate it seems like a good pattern to follow making it obvious to the author if they show an empty string they should make it visible via styles.

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


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

Received on Wednesday, 18 September 2024 17:12:36 UTC