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

> 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