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

It still doesn't make sense to me that Blink behaves different in [these cases](https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cstyle%3E%0A.wrapper%20%7B%20width%3A%20max-content%3B%20border%3A%20solid%203px%3B%20%7D%0A.grid%20%7B%20background%3A%20gray%3B%20display%3A%20grid%3B%20grid-template-rows%3A%20100px%3B%0A%20%20%20%20%20%20%20%20box-sizing%3A%20border-box%3B%20padding%3A%2010%25%3B%20width%3A%20min-content%3B%20max-width%3A%20200px%3B%20%7D%0A.grid%3A%3Abefore%20%7B%20content%3A%20%22%22%3B%20background%3A%20lime%3B%20width%3A%20100px%20%7D%0A.grid%3A%3Aafter%20%7B%20content%3A%20%22%22%3B%20background%3A%20lime%3B%20width%3A%20100px%20%7D%0A%3C%2Fstyle%3E%0A%3Cdiv%20class%3D%22wrapper%22%3E%0A%20%20%3Cdiv%20class%3D%22grid%22%20style%3D%22grid-template-columns%3A%20repeat(auto-fill%2C%2051%25)%22%3E%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A%3Cdiv%20class%3D%22wrapper%22%3E%0A%20%20%3Cdiv%20class%3D%22grid%22%20style%3D%22grid-template-columns%3A%20repeat(auto-fill%2C%20100px)%22%3E%3C%2Fdiv%3E%0A%3C%2Fdiv%3E):

```html
<!DOCTYPE html>
<style>
.wrapper { width: max-content; border: solid 3px; }
.grid { background: gray; display: grid; grid-template-rows: 100px;
        box-sizing: border-box; padding: 10%; width: min-content; max-width: 200px; }
.grid::before { content: ""; background: lime; width: 100px }
.grid::after { content: ""; background: lime; width: 100px }
</style>
<div class="wrapper">
  <div class="grid" style="grid-template-columns: repeat(auto-fill, 51%)"></div>
</div>
<div class="wrapper">
  <div class="grid" style="grid-template-columns: repeat(auto-fill, 100px)"></div>
</div>
```

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8963#issuecomment-1592073042 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 22:26:20 UTC