Re: [csswg-drafts] [css sizing] auto <length> description may have wrong "otherwise" (#7769)

OK, I guess you might be arguing that the condition of skipping the contents could be replaced with having a non-`visible` `content-visibility`?

So, the answer of "If the element has size containment, should it use the last remembered size?" is:

|  | Nothing else causing<br>size containment | `contain: size`<br>or similar |
| ------------- | ------------- | ------------- |
| `content-visibility: visible` | - | No |
| `content-visibility: auto` not skipping contents | - | No  |
| `content-visibility: auto` skipping contents | Yes | Yes  |
| `content-visibility: hidden`  | Yes | Yes  |

And it would become:

|  | Nothing else causing<br>size containment | `contain: size`<br>or similar |
| ------------- | ------------- | ------------- |
| `content-visibility: visible` | - | No |
| `content-visibility: auto` not skipping contents | - | Yes  |
| `content-visibility: auto` skipping contents | Yes | Yes  |
| `content-visibility: hidden`  | Yes | Yes  |

I don't think it matters much in practice since `contain: size` or similar will prevent storing the last remembered size in the 1st place, so only observable if you are setting it dynamically.

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


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

Received on Wednesday, 21 September 2022 17:45:39 UTC