Re: [csswg-drafts] [css-sizing] Resolved value of min size properties doesn't round-trip (#11716)

That's fair, I'm happy with that (and that matches the letter of the resolution, so no change needed).

One other edge case: what should we do for elements in a `display:none` subtree that happen to have `aspect-ratio: 1/1` for example?

I tend to think we should continue returning `0` for those elements (as we do now) instead of needing to check their `aspect-ratio` to decide whether we should return `auto`.  This is what happens for flex/grid items in a `display:none` subtree (since strictly speaking they're not actually flex or grid items if they don't generate a box).  And in Gecko at least, that makes this much easier, since we don't have the styles readily available for elements in `display:none` subtrees.  (Maybe we can look them up if we need to, but I forget how offhand.)

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


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

Received on Wednesday, 26 March 2025 23:29:36 UTC