[csswg-drafts] [css-overflow] Not all boxes establish an independent formatting context due to `overflow` (#8275)

Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-overflow] Not all boxes establish an independent formatting context due to `overflow` ==
CSS Display says https://drafts.csswg.org/css-display-3/#establish-an-independent-formatting-context

> Turning a block into a [scroll container](https://drafts.csswg.org/css-overflow-3/#scroll-container) will cause it to establish an independent formatting context; however **turning a [subgrid](https://drafts.csswg.org/css-grid-2/#subgrid) into a scroll container will not**—it continues to act as a subgrid, with its contents participating in the layout of its parent [grid container](https://drafts.csswg.org/css-grid-2/#grid-container).

But CSS Overflow has no exception for subgrid: https://drafts.csswg.org/css-overflow-3/#scroll-container

> If the computed value of [overflow](https://drafts.csswg.org/css-overflow-3/#propdef-overflow) on a [block box](https://drafts.csswg.org/css-display-4/#block-box) is neither [visible](https://drafts.csswg.org/css-overflow-3/#valdef-overflow-visible) nor [clip](https://drafts.csswg.org/css-overflow-3/#valdef-overflow-clip) nor a combination thereof, it [establishes an independent formatting context](https://drafts.csswg.org/css-display-4/#establish-an-independent-formatting-context) for its contents.

CSS Display is just giving examples, so it's not clear if there are other exceptions that are not present in CSS Overflow either. This should be properly defined in CSS Overflow.



Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8275 using your GitHub account


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

Received on Saturday, 31 December 2022 16:05:49 UTC