- From: Xiaocheng Hu via GitHub <sysbot+gh@w3.org>
- Date: Tue, 13 Jun 2023 19:37:02 +0000
- To: public-css-archive@w3.org
An easy fix, at least for your use case, would be saying a `::before` or `::after` pseudo element (which are the only pseudo elements that can create an OOF box) has the same implicit anchor element as the originating element.
---
Or if we want any child element to be able to use its parent's implicit anchor, then this may be solved by @tabatkins's proposal in #8181
The proposal says whenever we have an anchor element reference (either by implicit anchor, `anchor-default` or an anchor name), its computed value should be the actual anchor element instead of just a name.
Then we can do something like
```
.parent { anchor-default: implicit; } /* This should compute to the implicit anchor element */
.child { anchor-default: inherit; } /* Inherits the parent element's implicit anchor element */
```
--
GitHub Notification of comment by xiaochengh
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8913#issuecomment-1589910333 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 13 June 2023 19:37:04 UTC