Re: [csswg-drafts] [css-sizing] Removing intrinsic aspect-ratio from an image (#6257)

Since `object-fit` doesn't seem to work well with `contain: size`, another approach can be:

```css
width: 0;
height: 0;
min-width: 100%;
min-width: 100%;
```

This should avoid natural sizes, 300x150 default intrinsic size, etc.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 26 May 2021 16:50:39 UTC