Re: [csswg-drafts] [css-anchor-position-2] Add a new container-type `anchored` for querying anchored elements (#12390)

The CSS Working Group just discussed ``[css-anchor-position-2] Add a new container-type `anchored` for querying anchored elements``, and agreed to the following:

* `RESOLVED: create level 2 diff spec for anchor pos and define an anchored keyword for container-type there`

<details><summary>The full IRC log of that discussion</summary>
&lt;JoshT> futhark: before the summer, I presented what fallback is chosen for anchor pos<br>
&lt;JoshT> ... there are two issues connected:<br>
&lt;JoshT> ... to propose to add a new container type anchored to the container type property<br>
&lt;JoshT> ... that can be used in combination with other container types<br>
&lt;JoshT> ... have discussed in the issue which containments are neccessary and size containment isn't<br>
&lt;JoshT> ... can affect characters in flow in ??? and you could get a cycle<br>
&lt;JoshT> ... I proposed that we add an anchored container type that implies styled containment<br>
&lt;astearns> ack fantasai<br>
&lt;JoshT> fantasai: is there a reason not to make this compat with style containment<br>
&lt;JoshT> ... either reusing it or having it compute to style containment<br>
&lt;JoshT> futhark: this is the same as what we do with ????<br>
&lt;fantasai> s/????/inline-size etc./<br>
&lt;JoshT> fantasai: from what I can see, this is the same as style containment<br>
&lt;JoshT> futhark: you could combine with contain property<br>
&lt;JoshT> ... so this is already how other container types work<br>
&lt;miriam> q+<br>
&lt;JoshT> ... the contain property and the ??? container type is combined<br>
&lt;JoshT> fantasai: I don't understand what is the difference between container-type and contain again<br>
&lt;JoshT> futhark: it tests which type is a candidate for containment. you can't do that with the contain property<br>
&lt;JoshT> fantasai: is there a reason to limit this?<br>
&lt;astearns> ack miriam<br>
&lt;JoshT> TabAtkins: container-type is in the container queries spec. and the other is in the containment spec<br>
&lt;JoshT> ... container-type is for container queries. and certain values imply certain contain values<br>
&lt;JoshT> miriam: IIUC, this doesn't affect anchor pos and try blocks and anything else. this would only apply if you want to query the container and change some aspect of it<br>
&lt;JoshT> futhark: Correct<br>
&lt;JoshT> astearns: what would the proposed resolution be?<br>
&lt;JoshT> futhark: last time, suggested that this should be added to lvl 2 of anchor pos spec<br>
&lt;JoshT> ... so create the spec and add it to the container-type property<br>
&lt;JoshT> ... with style containment<br>
&lt;JoshT> PROPOSED: create level 2 diff spec for anchor pos and define an anchor keyword for container-type there<br>
&lt;JoshT> astearns: should the keyword be anchor, not anchored?<br>
&lt;JoshT> TabAtkins: need to distinguish the two states<br>
&lt;JoshT> RESOLVED: create level 2 diff spec for anchor pos and define an anchored keyword for container-type there<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12390#issuecomment-3184660869 using your GitHub account


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

Received on Wednesday, 13 August 2025 16:43:53 UTC