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

Specifically for the `aspect-ratio: none` case consider the following example:

```
<!DOCTYPE html>
<div style="display: inline-grid; border: solid;">
  <svg style="background: green;"></svg>
</div>
```
https://www.software.hixie.ch/utilities/js/live-dom-viewer/?saved=9397
(FF seems to have a bug with above).

Here the `<svg>` element has no aspect-ratio (set the width/height at the other dimension will stay the same size).
This is how:
```
<!DOCTYPE html>
<div style="display: inline-grid; border: solid;">
  <img src=image style="aspect-ratio: none;"></svg>
</div>
```
.... would behave.

The element would still take up space by default - using its natural-size, but have no aspect-ratio. This might be desired! But isn't exactly what the use case is describing unless I'm mis-understanding.


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


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

Received on Wednesday, 9 June 2021 16:46:08 UTC