[csswg-drafts] [css-align] Should abspos really use the `place-items` of the parent instead of the containing block? (#11197)

Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-align] Should abspos really use the `place-items` of the parent instead of the containing block? ==
```html
<!DOCTYPE html>
<div style="position: relative; place-items: end; width: 100px; height: 100px; border: solid">
  <div style="place-items: center">
    <div style="position: absolute; width: 50px; height: 50px; background: cyan; inset: 0"></div>
  </div>
</div>
```

| Blink | Firefox Nightly |
| - | - |
| ![](https://github.com/user-attachments/assets/cff03efd-2458-4893-b799-94848f7fc9ee) | ![](https://github.com/user-attachments/assets/dc708f8c-5af8-42e7-b642-9b989ac41505) |

Blink seems to treat `place-self: auto` as `start`. Firefox obeys the `place-items` from the parent box (not the parent element, it skips `display: contents`).

But I think obeying the `place-items` of the the containing block would be more intuitive.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11197 using your GitHub account


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

Received on Wednesday, 13 November 2024 14:47:45 UTC