Re: [csswg-drafts] [css-sizing] Intrinsic sizes for stretchable replaced elements (#13149)

These SVG have an inline size of `auto`, so it still seems possible to get the desired behavior if the automatic size has a special intrinsic contribution different than `fit-content` for stretchable svg.

In WebKit, this is 300px wide, so it's web compatible:

```html
<div style="float: left; border: solid 3px; margin: 10px;">
  <svg viewBox="0 0 1 1" style="width: max-content"></svg>
</div>
```

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


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

Received on Sunday, 29 March 2026 03:42:58 UTC