Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[css-sizing-4] More #6308 - discussion with chrishtr concluded that a…
…n on-screen c-v:hidden element using a phantom size would also still be bad.
- Loading branch information
839ae05
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
839ae05
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On reflection, I don't think this commit is quite right. As written, it would say you should apply
contain-intrinsic-size: auto
tocontent-visibility:hidden
elements that are scrolled offscreen. However, doing so would be unnecessarily expensive, because it would require anIntersectionObserver
for all such elements. How about"is currently [=skipping its contents=], is not [=relevant to the user=], and is only not relevant to the user because it is not on-screen"
?