W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2019

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

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Mon, 15 Apr 2019 16:17:35 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-483320040-1555345053-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:07 UTC