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

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

From: jonjohnjohnson via GitHub <sysbot+gh@w3.org>
Date: Sun, 24 Jun 2018 22:41:25 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-399793937-1529880084-sysbot+gh@w3.org>
> width: 30ew;

This specific example of `ew` unit confuses me. Are you setting the img to 30% of the width of the .page element? So the img `ew` unit comes from the parents width? Or are you somehow wanting to set the width of the img to 30% of what the width of the img would compute to if left unset?

Regardless, I'd be more interested in a property or method (https://github.com/w3c/csswg-drafts/issues/820#issuecomment-268282394) that comes with constraints on display and box, cleanly interacting with min/max-height/width and values like min/max-content/min()/max()/etc... something to more cleanly accomplish this... http://jsbin.com/yuvaka/9/edit?html,output

-- 
GitHub Notification of comment by jonjohnjohnson
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/333#issuecomment-399793937 using your GitHub account
Received on Sunday, 24 June 2018 22:41:31 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 24 June 2018 22:41:33 UTC