W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2017

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

From: Mats Palmgren via GitHub <sysbot+gh@w3.org>
Date: Wed, 04 Jan 2017 23:13:51 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-270514935-1483571628-sysbot+gh@w3.org>
Well, I wanted to know to be able to properly critique your current 
proposal to solve this issue.
(FYI, Firefox and Chrome do in fact try to ratio-preserve images with 
`fill` in most cases:
https://people-mozilla.org/~mpalmgren/tests/img-fill.html
Anyway, I guess that's a separate issue.)

It's still not clear to me what the suggested "workaround" is to get 
the desired behavior. I don't see how `max-width:fill; 
max-height:fill` can fix that alone. That only works if the image 
intrinsic size is larger than the grid area to begin with. How do you 
get the image to grow to fill the grid area if it's smaller? (in a 
ratio-preserving way)

-- 
GitHub Notification of comment by MatsPalmgren
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/523#issuecomment-270514935 
using your GitHub account
Received on Wednesday, 4 January 2017 23:13:58 UTC

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