@@ -321,18 +321,27 @@ might not be capable of anchoring the positioned element.
321
321
2. Otherwise, return nothing.
322
322
2. Otherwise, return the first element |el| in tree order
323
323
that satisfies the following conditions:
324
- * |el| and |query el| have the same [=tree/root=] .
324
+
325
325
* |el| is an [=anchor element=] with an [=anchor name=] of |name|.
326
+
327
+ * |el|'s [=anchor name=] and |name| are both associated with the same [=tree=] [=tree/root=] .
328
+
329
+ Note: The [=anchor name=] is a [=tree-scoped name=] ,
330
+ while |name| is a [=tree-scoped reference=] .
331
+
326
332
* Either |el| is a descendant of |query el|'s [=containing block=] ,
327
333
or |query el|'s [=containing block=] is the [=initial containing block=]
334
+
328
335
* If |el| has the same [=containing block=] as |query el|,
329
336
|el| is not [=absolutely positioned=]
337
+
330
338
* If |el| has a different [=containing block=] from |query el|,
331
339
the last [=containing block=] in |el|'s [=containing block chain=]
332
340
before reaching |query el|'s [=containing block=]
333
341
is not [=absolutely positioned=]
334
342
335
- Note: There might not be any such element.
343
+ If no element satisfies these conditions,
344
+ return nothing.
336
345
337
346
Note: The general rule captured by these conditions
338
347
is that |el| must be fully laid out
0 commit comments