Re: [csswg-drafts] [css-contain] Behavior of slightly offscreen content having`content-visibility:auto` when UA margin around the viewport is 0 (#8407)

A simpler solution may be saying that `content-visibility: auto` forces `contain-intrinsic-size` to gain the `auto` value at computed or used value time. I actually can't imagine why someone would want to use `content-visibility: auto` without `contain-intrinsic-size` having `auto`.

But there is the case of `contain-intrinsic-size: none`. Circularities typically occur when `contain-intrinsic-size` is set to a big length, but can also happen with `none`: [testcase](https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cdiv%20style%3D%22display%3A%20flex%3B%20flex-wrap%3A%20wrap%3B%20width%3A%20500px%3B%20margin-top%3A%20-200vmax%22%3E%0A%20%20%3Cdiv%20style%3D%22content-visibility%3A%20auto%3B%20min-width%3A%20250px%3B%20text-indent%3A%20500px%3B%20background%3A%20red%3B%22%3E.%3C%2Fdiv%3E%0A%20%20%3Cdiv%20style%3D%22flex%3A%201%201px%3B%20height%3A%20400vmax%3B%20background%3A%20blue%22%3E%3C%2Fdiv%3E%0A%3C%2Fdiv%3E). So we would need to add `auto none` (#7737), or turn it into `auto 0px`.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8407#issuecomment-1427382620 using your GitHub account


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

Received on Monday, 13 February 2023 05:45:34 UTC