Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-overflow] Not all boxes establish an independent formatting context due to overflow #8275

Closed
Loirooriol opened this issue Dec 31, 2022 · 1 comment
Labels
css-overflow-3 Current Work

Comments

@Loirooriol
Copy link
Contributor

CSS Display says https://drafts.csswg.org/css-display-3/#establish-an-independent-formatting-context

Turning a block into a scroll container will cause it to establish an independent formatting context; however turning a 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.

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

If the computed value of overflow on a block box is neither visible nor clip nor a combination thereof, it establishes 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.

@Loirooriol Loirooriol added the css-overflow-3 Current Work label Dec 31, 2022
@Loirooriol
Copy link
Contributor Author

Erg, I missed "block box".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-overflow-3 Current Work
Projects
None yet
Development

No branches or pull requests

1 participant