Re: [csswg-drafts] [css-anchor-1] Tree-scoped references don't play nicely with transition styles (#8180)

> tree-scoped references must be resolved at computed-value time, to whatever it is they represent.

This seems to allow invalid anchor references by inheritance. For example:

```html
<div id="anchor" style="anchor-name: --a"></div>
<div id="div1" style="position: absolute; left: anchor(--a left)">
  <div id="div2" style="position: absolute; left: inherit"></div>
</div>
```

If we resolve `anchor()` at computed value time, then `#div2` gets `#anchor` as its anchor via inheritance. But this is invalid because `#anchor` is not in the same containing block of `#div2`.

-- 
GitHub Notification of comment by xiaochengh
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8180#issuecomment-1379446498 using your GitHub account


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

Received on Wednesday, 11 January 2023 20:29:05 UTC