Re: [csswg-drafts] [css-grid] Static position should use content-box, not padding-box

@MatsPalmgren one question about the tests. I see tests for self and content alignment in the case of flexboxes, but only for self alignment in the case of grid layout. Why?

For example, I'm wondering if for grid layout the following two examples. Should they have the same output (the abspos element should be horizontally and vertically centered)?

* Self alignment:
```html
<div style="display: grid; width: 200px; height: 100px; place-items: center;
            border: solid thick;">
  <div style="position: absolute; background: magenta;">abspos</div>
</div>
```

* Content alignment:
```html
<div style="display: grid; width: 200px; height: 100px; place-content: center;
            border: solid thick;">
  <div style="position: absolute; background: magenta;">abspos</div>
</div>
```

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

Received on Wednesday, 19 September 2018 08:25:10 UTC