Re: [csswg-drafts] [css-sizing-4][css-contain] Clarify on specifying aspect-ratio and contain:size on replaced elements (#5550)

Right, so #5585 deals with implicit aspect ratios, and https://github.com/whatwg/html/issues/5907 will handle the mapping of the width / height attributes into an explicit aspect ratio.
With those two out of the way, the remaining question in this issue boils down to whether contain suppresses an explicit aspect ratio or not, right?

I don't see any reason it should, so the original `<img src="https://placehold.it/300x100" style="width: 100px; aspect-ratio: 1/1; contain:size">` should get 100x100.

If we agree, I think we can leave the spec unchanged, but should write a test.

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


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

Received on Tuesday, 6 October 2020 07:06:34 UTC