Re: [csswg-drafts] [css-sizing] intrinsic-size lost the thread :( (#4531)

> I really don't want to have separate properties for "explicit size that always wins" and "explicit size that's only used under certain conditions".

I kind of think of size containment as already putting in a 0x0 for its intrinsic size (which of course only applies if contain: size is present). This is due to the fact that it has to lay out as if it had no children, and also replaced elements get intrinsic width and height as 0. This proposed property would just allow the developer to specify something other than 0x0 under the same conditions.

In terms of the cascade or what wins when, I would imagine the same rules as size containment apply. In other words, if size containment is specified then instead of laying out as if empty, the element lays out as if it has a single child box of specified size or something along those lines. 

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

Received on Tuesday, 3 December 2019 19:13:35 UTC