- From: Temani Afif via GitHub <sysbot+gh@w3.org>
- Date: Wed, 26 Jun 2024 09:46:40 +0000
- To: public-css-archive@w3.org
Afif13 has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-anchor-position-1][css-position] behavior of inset-area when no anchor is defined == I just tried the below code: ```css .container { position: relative; } .element { position: absolute; inset-area: center; margin: auto; } ``` And to my surprise, it center the absolute element. Demo: https://codepen.io/t_afif/pen/OJYwybK Based on the [Specification](https://www.w3.org/TR/css-anchor-position-1/#inset-area) the propety applies to "positioned elements with a [default anchor element](https://www.w3.org/TR/css-anchor-position-1/#default-anchor-element)". Does it mean that any positioned element has a default anchor which is its containing block? If it's the correct behavior, I think the Spec should clarify the "default anchor" part. Or maybe this is a bug and `inset-area` should have no effect? Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10500 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 26 June 2024 09:46:41 UTC