Re: [csswg-drafts] [css-grid-2] Resolving padding in indefinite intrinsic size calculation and using that to resolve indefinite size? (#8963)

> So why does Blink resize the grid container in other cases?

Because the padding now *can* be resolved, as we have a definite width to resolve against.

> Yeah Firefox seems wrong here https://searchfox.org/mozilla-central/rev/f76d80e486028313488d05f4e7fe2509cec11777/layout/generic/nsGridContainerFrame.cpp#204-206

This is kinda my point. E.g. https://www.software.hixie.ch/utilities/js/live-dom-viewer/?saved=11797

```
<div class="wrapper" style="width: min-content;">
  <div class="target grid"></div>
</div>
<div class="wrapper" style="width: 200px;">
  <div class="target grid"></div>
</div>
```

Once `width: min-content` is resolved and definite - then it should be no different to if `width: 200px` was specified. Boxes above should render exactly the same.





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


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

Received on Wednesday, 14 June 2023 20:53:03 UTC