Re: [csswg-drafts] [css-sizing] Import aspect-ratio from child image (#5269)

Comments during the f2f pointed out a few wrinkles we need to worry about:

* out-of-flow elements shouldn't prevent this (a `figure` with an abspos `figcaption`, for example)
* collapsed whitespace shouldn't prevent this (it shouldn't matter whether the `<a>` and `<img>` tags are on a separate line in the source)

@emilio and @cbiesinger thought it would be kinda weird for this to care about collapsed whitespace specifically. @fantasai pointed out that we already care about this for margin-collapsing, for instance - collapsed whitespace between the container and the first child element doesn't prevent collapsing. Given this, I think it's okay to rely on the same behavior?

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

Received on Monday, 27 July 2020 22:45:39 UTC