Skip to content

Commit 832c2fb

Browse files
author
Jihye Hong
committed
Minor fixes
1 parent c110050 commit 832c2fb

2 files changed

Lines changed: 24 additions & 25 deletions

File tree

index.bs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,10 @@ See [[#events-nav-type]] for details about the various events.
206206
<figcaption>Moving focus to the hidden element in the <a>spatial navigation focus container</a>.</figcaption>
207207
</figure>
208208

209-
On the left of figure 3, under "Box 3", there isn't any visible element in the scrollort.
209+
On the left of figure 3, under "Box 3", there isn't any visible element in the <a>scrollport</a>.
210210
Therefore, the effect of pressing the <code class=key>ArrowDown</code> is to scrolls down, as shown in the middle.
211-
Once "Box 4" comes in to view, the next press of the <code class=key>ArrowDown</code> key
212-
will focus it, as shown on the right,
211+
Once "Box 4" comes into view, the next press of the <code class=key>ArrowDown</code> key
212+
will focus it, as shown on the right.
213213

214214
This example uses the markup as follows:
215215
<pre class="lang-css">
@@ -480,7 +480,7 @@ The <a event>navbeforescroll</a> event occurs before spatial navigation triggers
480480
<th>Attributes of the event
481481
<td><dl>
482482
<dt>{{NavigationEvent}}.{{NavigationEvent/relatedTarget}}
483-
<dd>The element that will be scrolled if the event is not cancelled
483+
<dd>The element that will be scrolled if the event is not canceled
484484

485485
<dt>{{NavigationEvent}}.{{NavigationEvent/dir}}
486486
<dd>The direction of the navigation as requested by the user
@@ -799,7 +799,7 @@ the following steps are run to <dfn>react to key presses</dfn>.
799799
in the <code>forward</code> direction if {{KeyboardEvent/shiftKey}} is <code>false</code>
800800
or in the <code>backward</code> direction if it is <code>true</code>,
801801
then return
802-
11. Else, if the {{KeyboardEvent/key}} is one of <code class=key>ArrowUp</code>,<code class=key>ArrowDown</code>, <code class=key>ArrowLeft</code>, or <code class=key>ArrowRight</code>:
802+
11. Else, if the {{KeyboardEvent/key}} is one of <code class=key>ArrowUp</code>, <code class=key>ArrowDown</code>, <code class=key>ArrowLeft</code>, or <code class=key>ArrowRight</code>:
803803
1. Let <var>dir</var> be:
804804
* <code>up</code> if the {{KeyboardEvent/key}} is <code class=key>ArrowUp</code>
805805
* <code>down</code> if the {{KeyboardEvent/key}} is <code class=key>ArrowDown</code>
@@ -821,13 +821,13 @@ the following steps are run to <dfn>react to key presses</dfn>.
821821
where there is no unusual setting of the 'overflow' property on these elements,
822822
and where no element in particular was focused and
823823
<var>eventTarget</var> was set to <a>the body element</a> or the <a>document element</a> of the <a>top-level browsing context</a> in steps 1 &amp; 2,
824-
the condition of this step is not mached,
824+
the condition of this step is not matched,
825825
and we fallback to the next step.
826826
4. Else, if spatial navigation is <a for=spatnav>active</a> on <var>eventTarget</var>
827827
run the <a>navigation steps</a> on <var>eventTarget</var> in direction <var>dir</var> from <var>startingPoint</var>,
828828
then return
829829
5. Else, let <var>ancestor</var> be the nearest ancestor of <var>startingPoint</var> that is a <a>scroll container</a> that <a>can be scrolled manually</a>,
830-
including in <a>ancestor browsing contexts</a>,
830+
including in an <a>ancestor browsing contexts</a>,
831831
or <code>null</code> if no such element can be found.
832832

833833
If <var>ancestor</var> is <code>null</code>,
@@ -838,7 +838,7 @@ the following steps are run to <dfn>react to key presses</dfn>.
838838
Issue: This is how Chrome and Safari do it.
839839
Firefox only looks at the first ancestor of <var>startingPoint</var>,
840840
and if that cannot be manually scrolled,
841-
it stops there rather than look further up the ancestry chain.
841+
it stops there rather than looking further up the ancestry chain.
842842

843843
</div>
844844

0 commit comments

Comments
 (0)