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-sizing] Should contain-intrinsic-size: auto really care about being relevant to the user for content-visibility: hidden? #7521

Closed
Loirooriol opened this issue Jul 20, 2022 · 1 comment

Comments

@Loirooriol
Copy link
Contributor

From https://drafts.csswg.org/css-sizing-4/#valdef-contain-intrinsic-width-auto-length

If the element has a last remembered size, is currently skipping its contents, and is not relevant to the user, its explicit intrinsic inner size is the last remembered size.

Why check "not relevant to the user"? For content-visibility: auto it's fine, since it only skips its contents if not relevant to the user, so the conditions are equivalent.

But content-visibility: hidden always skips its contents. So having to check if it's relevant to the user means that the position of such elements will need to be tracked with contain-intrinsic-size: auto, even if content-visibility: hidden doesn't normally require so.

This was added in 839ae05. Was it really needed?

@Loirooriol
Copy link
Contributor Author

Resolved to drop the condition in #6308 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant