Re: [csswg-drafts] [css-grid][css-sizing] Aspect Ratio

1. Maybe I didn't understand your question. But if width and height are already specified (either in pixel or percentage), intrinsicSize does not change the aspect ratio for the layout, it will only override what naturalWidth and naturalHeight return.

2. <img intrinsicsize="300 x 200" style="width: 100%;" /> maybe? I will test it and get back to you.

long story short, if intrinsicsize is not specified, nothing is changed (unless you turn on feature policy unsized-media, which set the default intrinsicsize to "300 x 150"); if intrinsicsize is used it doesn't do anything more than overriding the value of the intrinsic size of the image.

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

Received on Tuesday, 13 November 2018 19:09:57 UTC