W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2016

Re: [csswg-drafts] [css-grid] Stretching image grid items in both dimensions

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Thu, 22 Sep 2016 13:52:45 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-248909542-1474552363-sysbot+gh@w3.org>
Well, actually manually setting the width won't cause the aspect ratio
 to be observed: it just sets the width in that dimension, and since 
the initial value of align-self is `stretch`, the other axis will 
continue to just stretch.

Squishing images seems a little odd, but as a starting point it's 
useful: the `object-fit` options are then only one step away, and the 
alignment options can be used to release the `stretch` in either or 
both axes easily.

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/523#issuecomment-248909542 
using your GitHub account
Received on Thursday, 22 September 2016 13:52:57 UTC

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