Re: [csswg-drafts] [css-sizing-4][css-contain-2] Revisiting auto-sizing when size-containment applies (#5668)

It makes sense for us to forget the size. 

I'm thinking from the perspective of an element that has neither size containment nor contiain-intrinsic-size. In this case, it seems wasteful to remember any type of size because nothing really applies here. However, I can then apply size containment, wait a bit, and apply contain-intrinsic-size: auto. I think it's fair to say that we use a placeholder size in that case, _not_ the remembered size. If you agree with that line of reasoning, then I think that generalizes to us forgetting the value once contain-intrinsic-size: auto is removed.

I'm unfamiliar with the details of the CSS timings, but I'd like to point out a case like "remove contain-intrinsic-size: auto. and then add it in the same function without any forced style in between". Here, we would probably not forget the value, right? And if there was a forced style in between, we would forget the value?


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


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

Received on Friday, 5 February 2021 18:13:23 UTC