diff --git a/css-conditional-5/Overview.bs b/css-conditional-5/Overview.bs index 092040c737d..d7d5c778611 100644 --- a/css-conditional-5/Overview.bs +++ b/css-conditional-5/Overview.bs @@ -399,6 +399,21 @@ Container Queries can be conditioned by querying against it, using the ''@container'' [=conditional group rule=]. + An ancestor element that generates a box is not an eligible container for + [=container size queries=] if that box is not an ancestor box of any boxes + generated by the querying element. + There are cases where the box for a pseudo-element is generated as a + sibling box of its originating element's box. If we allowed querying the size + of a sibling box, it would introduce layout cycles. + +
+ The ''::scroll-marker-group'' and ''::scroll-button()'' pseudo-elements + generate sibling boxes of their originating element's box. + These pseudo-elements will not be able to query their originating scroller + for [=container size queries=]. They will, however, be able to query other + eligible [=query container=] ancestors. +
+
For example, we can define the main content area and sidebar as containers, and then describe a ''.media-object'' that changes