Re: [csswg-drafts] [css-lists] Interaction of ::marker with other pseudo-elements. (#3826)

I think most of this was already resolved in https://github.com/w3c/csswg-drafts/issues/1793#issuecomment-380762861

 - Do `::before` and `::after` generate markers?
   Yes, but the marker will have no box if the `::before` or `::after` doesn't have `display: list-item`, as usual.
 - Do those markers generated by pseudo-elements match selectors from the page?
   As Mats says I don't think `::marker` should select these markers, because `::marker` means `*::marker`, and `*` only matches elements.
   But something like `::before::marker` might be allowed in the future.
 - Does `display` apply to `::marker`? And thus, can `::marker` boxes be list items?
   Currently `display` does not apply to `::marker` (https://drafts.csswg.org/css-pseudo-4/#marker-pseudo), so they cannot be list items.
And even if they could, the resolution in #1793 said that marker pseudo-elements (in the element tree, not marker boxes) are only originated by elements, `::before` and `::after`, but not by other markers. Otherwise the element tree would have an infinite depth.

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

Received on Monday, 15 April 2019 16:17:36 UTC