W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2018

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

From: Luna Lu via GitHub <sysbot+gh@w3.org>
Date: Tue, 13 Nov 2018 19:09:56 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-438398308-1542136195-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:39 UTC