@@ -33,6 +33,8 @@ spec: cssom-1; type:dfn; text:owner node; for:CSSStyleSheet;
3333spec: selectors-4; type: type; text: <q-name>
3434spec: infra; type: dfn; text: string;
3535spec: css-2023; type: dfn; text: ua
36+ spec:css-typed-om-1; type:dfn; text:internal representation
37+ spec:url; type:dfn; text:url; for:/
3638</pre>
3739<pre class="ignored-specs">
3840spec: css-device-adapt-1;
@@ -996,27 +998,28 @@ Fragment URLs</h5>
996998 and is a [=tree-scoped reference=]
997999 for the URL's [=url/fragment=] .
9981000
999- When matching a <<url>> with the <a>local url flag</a> set,
1000- resolve it as a [=tree-scoped reference=]
1001- with the tree's IDs as the associated [=tree-scoped names=] :
1002- specifically, resolve to the first element
1003- in [=tree order=]
1004- among the associated [=node tree=] 's descendants
1005- with the URL's [=url/fragment=] as its ID.
1006- (And, as usual for [=tree-scoped references=] ,
1007- continuing up to the host's tree if needed.)
1008- If no such element is found,
1009- the URL fails to resolve.
1001+ When matching a <<url>> with the <a>local url flag</a> set:
1002+
1003+ * if the URL's fragment is an element ID reference
1004+ (rather than, say, a media fragment),
1005+ resolve it as a [=tree-scoped reference=]
1006+ with the tree's IDs as the associated [=tree-scoped names=] :
1007+ specifically, resolve to the first element
1008+ in [=tree order=]
1009+ among the associated [=node tree=] 's descendants
1010+ with the URL's [=url/fragment=] as its ID.
1011+ (And, as usual for [=tree-scoped references=] ,
1012+ continuing up to the host's tree if needed.)
1013+
1014+ If no such element is found,
1015+ the URL fails to resolve.
1016+
1017+ * otherwise, resolve the fragment against the current document.
10101018
10111019 Issue: Possibly reference <l spec=html> [=find a potential indicated element=] </l> ,
10121020 but that is defined specifically for {{Document}} s,
10131021 not {{ShadowRoot}} s.
10141022
1015- Issue: I'm just folding together "can't find the ID"
1016- and "is a Media Fragment or other non-ID fragment",
1017- and treating both of them as a failed reference.
1018- I <em> think</em> this is reasonable.
1019-
10201023 Note: This means that such fragments will resolve
10211024 against the contents of the current document
10221025 (or whichever [=node tree=] the stylesheet lives in,
0 commit comments