@@ -33,6 +33,8 @@ spec: cssom-1; type:dfn; text:owner node; for:CSSStyleSheet;
33
33
spec: selectors-4; type: type; text: <q-name>
34
34
spec: infra; type: dfn; text: string;
35
35
spec: 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:/
36
38
</pre>
37
39
<pre class="ignored-specs">
38
40
spec: css-device-adapt-1;
@@ -996,27 +998,28 @@ Fragment URLs</h5>
996
998
and is a [=tree-scoped reference=]
997
999
for the URL's [=url/fragment=] .
998
1000
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.
1010
1018
1011
1019
Issue: Possibly reference <l spec=html> [=find a potential indicated element=] </l> ,
1012
1020
but that is defined specifically for {{Document}} s,
1013
1021
not {{ShadowRoot}} s.
1014
1022
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
-
1020
1023
Note: This means that such fragments will resolve
1021
1024
against the contents of the current document
1022
1025
(or whichever [=node tree=] the stylesheet lives in,
0 commit comments