[css-scoping] ::slotted
should skip direct children with display: contents
#6414
Labels
css-scoping-1
Current Work
When creating web components/custom elements, the
::slotted
pseudo element is very useful for styling slotted children. However, if such a child hasdisplay: contents
, even though that child has no "presence" in the browser, the::slotted
styling is still applied to it, instead of the children of thedisplay: contents
element.Please change the behavior so
::slotted
skips any direct children withdisplay: contents
.csswg-drafts/css-scoping-1/Overview.bs
Line 352 in 9d693a6
The text was updated successfully, but these errors were encountered: