[csswg-drafts] [css-anchor-position] When does anchor-scope "match" a name? (#10526)

andruud has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-anchor-position] When does anchor-scope "match" a name? ==
When an `anchor-scope` is specified with a `<dashed-ident>`, it scopes the name to that subtree when the anchor name is ["matching"](https://drafts.csswg.org/css-anchor-position-1/#anchor-scope). The problem is that this matching can be interpreted in at least three ways:

(Assuming that `anchor-scope` is a [tree-scoped reference](https://drafts.csswg.org/css-scoping-1/#css-tree-scoped-reference), which is also not clear in the spec):

 1. It matches by the ident part of the name only, ignoring any tree-scope that would be associated with the name, or
 2. It matches by _exact match_ of the ident part _and_ the associated tree-scope, or
 3. It matches by some mechanism similar to dereferencing of tree-scoped references, where it's a match when the tree-scope of the anchor-scope-name is an inclusive ancestor of the tree-scope of the anchor query.

So we need to define exactly what "matching" means. For now I've implemented (2), but it's not obvious that gives the best behavior.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10526 using your GitHub account


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

Received on Thursday, 4 July 2024 09:16:55 UTC