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

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