Skip to content

Commit 295ecb8

Browse files
author
Jihye Hong
committed
[css-nav-1] Change the result of getSpatialNavigationContainer()
Relate to: w3c#3743 (comment)
1 parent e9c630c commit 295ecb8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

css-nav-1/Overview.bs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,11 @@ the User Agent must run the steps described below:
479479
<div algorithm="getSpatialNavigationContainer steps">
480480
: <dfn method for=Element lt="getSpatialNavigationContainer()">getSpatialNavigationContainer()</dfn>
481481
::
482-
1. Return the element if it is a <a>spatial navigation container</a>,
483-
or the nearest ancestor of the element that is a <a>spatial navigation container</a>,
482+
1. Return the nearest ancestor of the element that is a <a>spatial navigation container</a>,
484483
or the <a>document</a> if the nearest <a>spatial navigation container</a> is the viewport.
484+
485+
Note: If the element is a <a>spatial navigation container</a>, {{getSpatialNavigationContainer()}} also returns
486+
the nearest <a>spatial navigation container</a>, not the element itself.
485487

486488
</div>
487489

0 commit comments

Comments
 (0)