- From: Christoph Päper via GitHub <sysbot+gh@w3.org>
- Date: Thu, 18 Jan 2024 11:22:51 +0000
- To: public-css-archive@w3.org
Crissov has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-anchor-position] Layered positioning == `anchor()` etc. allow for the position and size of the spatial box of an element to be based on the box of another, randomly identified box. However, CSS is not 2D, but 2.5D, because boxes can overlay each other in an ordinal stack of layers, represented by the `z-index` property. Authors frequently use very large absolute values for this property, because they want to ensure that a certain box (or class of boxes) is atop a certain other. It would be more elegant if they could actually reference that other layer. I think it is reasonable to reuse the recently established _anchor element_ for that reference. I believe almost all use cases can be covered by one of three results: 1. Stack at the _same_ `z-index` layer as the anchor element. 2. Stack at the _next higher_ layer as the `z-index` of the anchor element. 3. Stack at the _next lower_ layer as the `z-index` of the anchor element. Sometimes, it may also be useful to guarantee that the next higher or lower layer has no other boxes in it, i.e. either create a new layer in between for the current box or push it to the next unused layer index. I’m not sure that these cases are relevant enough, though. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9816 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 18 January 2024 11:22:54 UTC