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

> > Blink/WebKit resolve to 240px as you describe
> 
> Now I'm very confused, in the test I'm getting this:
> 
> Firefox Chromium
> Wrapper Content area: 300x160
> Padding area: 300x160 Content area: 300x160
> Padding area: 300x160
> Grid container Content area: 240x100
> Padding area: 300x160 Content area: 200x100
> Padding area: 260x160
> > Are we in agreement that this particular test case expectations are wrong
> 
> No, I agree with `data-expected-width="300"` (it checks `offsetWidth`, including the padding).

Sorry, I meant 260px. This is the testharness.js output:

.grid 16

assert_equals: <div class="grid border border-box pad-percent" style="width: min-content; height: min-content;" data-expected-width="300" data-expected-height="160"> <div class="item" data-offset-x="130" data-offset-y="80" data-expected-width="100" data-expected-height="50"></div> </div> width expected 300 but got 260

.grid 19

assert_equals: <div class="grid border border-box pad-percent" style="width: max-content; height: max-content;" data-expected-width="300" data-expected-height="160"> <div class="item" data-offset-x="130" data-offset-y="80" data-expected-width="100" data-expected-height="50"></div> </div> width expected 300 but got 260

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


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

Received on Tuesday, 13 June 2023 22:38:40 UTC