Skip to content

Commit e3825a5

Browse files
committed
[css-nav-1] Add note explaining why we have spatial-navigation-action
1 parent 4920142 commit e3825a5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

css-nav-1/Overview.bs

+7
Original file line numberDiff line numberDiff line change
@@ -1426,6 +1426,13 @@ or of its nearest [=scroll container=] ancestor if it isn't.
14261426
Note: The ''spatial-navigation-ation/scroll'' value is <a>at-risk</a>.
14271427
</dl>
14281428

1429+
Note: Earlier version of this specification did not offer a declarative way
1430+
to opt into the behavior defined by ''spatial-navigation-action/focus'',
1431+
and instead offered a cancellable event that would be fired before scrolling,
1432+
so that authors could implement that behavior themselves.
1433+
However, cancellable events related to scrolling can cause performance problems,
1434+
so this event was removed and the 'spatial-navigation-action' property was introduced instead.
1435+
14291436
<div class=example>
14301437
In this example, a scrollable container is specified with <code highlight=css>spatial-navigation-action: focus</code>.
14311438
Inside the container, there is an element which is out of the view within a <a>scrollport</a>.

0 commit comments

Comments
 (0)