Re: [csswg-drafts] [css-pseudo] Define ::backdrop (#7845)

Agenda+ to discuss a few questions about ::backdrop's display and position in the tree:

1. Should we just force ::backdrop to `display: block !important;` in the UA stylesheet? (This avoids some follow-up questions.)
2. Is ::backdrop indeed tree-abiding, or should we lock it down more?
 * Does it have a ::before/::after?
 * Is it fine for any property to work on it?
3. How should ::backdrop act wrt various tree/sibling-scoped things, like counters?


My preferences are:
1. Yes, ::backdrop doesn't have contents and only exists to hold a color or an image and maybe block mouse events, so there's no need to deal with other display values.
2. Yes, it's tree-abiding. No opinion on ::before/::after; I'm fine if we explicitly say it doesn't generate those. 
3. I think the easiest is to say that each backdrop is an independent tree for these purposes, not related to the document tree. It doesn't see counters from the document, and the document doesn't see counters from it; etc.  Alternately, backdrop can be a child of the originating element (maybe after the ::after pseudo?); this might be more straightforward, since it does inherit from the originating element now.

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


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

Received on Thursday, 13 April 2023 19:58:16 UTC