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

Cover example:
```
  img { object-fit: cover; }
```
Contain example, margin/border/padding fitted to grid slot and image 
proportionally sized into it:
```
  img { object-fit: contain; }
```
Contain example, margin/border/padding fitted to proportionally 
scaled-down image:
```
  img { justify-self: center; align-self: center; min-width: 100%; 
min-height: 100%; box-sizing: border-box }
```
Contain example with future syntax, margin/border/padding fitted to 
proportionally scaled-down image:
```
  img { foo-self: center; max-size: fill; }
```

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/523#issuecomment-249164569 
using your GitHub account

Received on Friday, 23 September 2016 11:09:32 UTC