Skip to content

Commit 6d1ab88

Browse files
[css-spatial-nav-1] Fix up 'can be manually scrolled' to care about axises, use it in a few more places. w3c/csswg-drafts@8f211ee
1 parent 65df11c commit 6d1ab88

1 file changed

Lines changed: 117 additions & 55 deletions

File tree

css-spatial-nav-ja.html

Lines changed: 117 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,9 @@
157157
●●options
158158

159159
spec_title:CSS Spatial Navigation Module Level 1
160-
spec_date:2026-06-01
161-
trans_update:2023-03-03
160+
spec_date:2026-05-14
161+
real_date:2026-06-30
162+
trans_update:2023-07-03
162163
source_checked:191126
163164
page_state_key:CSS
164165
original_url:https://drafts.csswg.org/css-spatial-nav-1
@@ -374,10 +375,14 @@
374375
要素を~scrollする:~CSSOMVIEW#scroll-an-element
375376

376377
~scroll境界:~CSSOVERSCROLL#scroll-boundary
378+
~scroll連鎖:~CSSOVERSCROLL#scroll-chain
377379

378380
~scroll容器:~CSSOVERFLOW3#scroll-container
379381
~scrollport:~CSSOVERFLOW3#scrollport
382+
~scroll可能な軸:~CSSOVERFLOW3#scrollable-axis
380383

384+
~軸:~CSSWM#x-axis
385+
~軸:~CSSWM#y-axis
381386

382387
●用語 HTML
383388
実際に不能化され:~HTMLselectors#concept-element-disabled
@@ -529,7 +534,7 @@
529534
優先的に:prioritize
530535

531536
し切った:maximum
532-
~~現れ:uncover
537+
可視になり:uncover
533538

534539
●UI
535540
UX:::利用者体験
@@ -670,8 +675,6 @@
670675
着想-:inspire:~
671676
惑わす:confuseさせる:~
672677
拡げる:expandする:~
673-
選取って:pickして:選び取って
674-
選取られ:pickされ:選び取られ
675678
誂えれ:tailorでき:あつらえれ
676679
欲求:desire:~
677680

@@ -711,6 +714,8 @@
711714
必ず備えるようにするため:in order to make sure
712715
関わる:associate
713716
任意選択で~~選ぶ:opt into
717+
~~選んで:pick
718+
~~選ばれ:pick
714719
もたらし:cause
715720
自前の~algoを与える:roll our own
716721
微調整:fine tune
@@ -1133,50 +1138,76 @@ <h2 title="Overview">3. 概観</h2>
11331138

11341139
<p>
11351140
より特定的には、
1136-
~UAは先ず,[
1141+
~UAは:
1142+
1143+
More specifically, the user agent\
1144+
</p>
1145+
<ul>
1146+
<li>
1147+
<p>
1148+
先ず,[
11371149
現在の`空間的~navi容器$の中で指示された方向にある,可視かつ~focus可能な~item
11381150
]を探索することになる
1139-
(`空間的~navi容器$は、
1140-
既定では,[
1151+
(`空間的~navi容器$は,既定では[
11411152
`根~要素$, ~scroll可能な要素, ~iframe
11421153
]いずれかであるが、
1143-
`spatial-navigation-contain$p ~propを利用すれば,他の要素も`空間的~navi容器$を成すようにできる)。
1154+
`spatial-navigation-contain$p ~propを利用すれば,
1155+
他の要素も`空間的~navi容器$を成し得る):
11441156
1145-
More specifically, the user agent will first search for visible and focusable items in the direction indicated within the current spatial navigation container (by default, the root element, scrollable elements, and iframes, but other elements can be made into spatial navigation containers using the spatial-navigation-contain property).
1157+
will first search for visible and focusable items in the direction indicated within the current spatial navigation container (by default, the root element, scrollable elements, and iframes, but other elements can be made into spatial navigation containers using the spatial-navigation-contain property).
11461158
</p>
1147-
1148-
<p>
1159+
<ul>
1160+
<li>
11491161
何かが見出された場合、
1150-
その方向にある最良な 1 つを選取って,~focusをそこへ移動することになる。
1162+
その方向にある最良な 1 つを~~選んで,~focusをそこへ移動することになる。
11511163
11521164
If it finds any, it will pick the best one for that direction, and move the focus there.
1153-
</p>
1154-
1165+
</li>
1166+
<li>
11551167
<p>
11561168
何も見出されなかった場合、
11571169
~focusを移動する代わりに,要請された方向へ`空間的~navi容器$を~scrollすることになる。
1158-
その結果,~focus可能な要素が~~現れ得る
1159-
— その場合、
1160-
次回に同じ方向へ空間的~naviが要請されたとき,それが~focusを移動する適格な~targetになるであろう。
1161-
1162-
If it does not, it will scroll the spatial navigation container in the requested direction instead of moving focus. Doing so may uncover focusable elements which would then be eligible targets to move the focus to next time spatial navigation in the same direction is requested.
1170+
その結果,~focus可能な要素が可視になり得る
1171+
— その場合~FN
1172+
それ【最初に可視になるもの】が[
1173+
次回に同じ方向へ空間的~naviが要請されたとき,~focusを移動する適格な~target
1174+
]になろう。
11631175
</p>
11641176

1177+
<p class="trans-note">
1178+
そこへ~scrollするが,まだ~focusを移動しない。
1179+
】【~FN
1180+
他の場合、
1181+
`~scroll境界$に達するまで~scrollすることになろう。
1182+
</p>
1183+
1184+
1185+
If it does not, it will scroll the spatial navigation container in the requested direction instead of moving focus. Doing so may uncover focusable elements which would then be eligible targets to move the focus to next time spatial navigation in the same direction is requested.
1186+
</li>
1187+
</ul>
1188+
</li>
1189+
<li>
11651190
<p>
1166-
1191+
前項において
11671192
~scroll可能な要素でないか,すでにその方向へ~scrollし切った
11681193
]ため,`空間的~navi容器$を~scrollできない場合、
1169-
~UAは先祖上の連鎖~FN を遡って次にある`空間的~navi容器$を選定して,何らかの[
1194+
先祖上の連鎖~FNを遡って,
1195+
次に来る`空間的~navi容器$を選定した上で、
1196+
何らかの[
11701197
~focus/~scroll
1171-
可能な要素を見出すか,`根~要素$に到達するまで,上の処理-を再帰的に繰返すことになる。
1172-
1173-
If the spatial navigation container cannot be scrolled, either because it is not a scrollable element or because it is already scrolled to the maximum in that direction, the user agent will select the next spatial navigation container up the ancestry chain, and recursively repeat the above process until it finds some element to focus or scroll, or reaches the root element.
1198+
先になる要素が見出されるまで,前項の処理nを再帰的に
1199+
— `根~要素$に到達するまで —
1200+
繰返すことになる。
11741201
</p>
11751202

11761203
<p class="trans-note">【~FN
11771204
この仕様に現れる “先祖” は、
11781205
~APIも含め,`~box~tree$に基づく先祖と解釈すべきように思われる。
11791206
</p>
1207+
1208+
If the spatial navigation container cannot be scrolled, either because it is not a scrollable element or because it is already scrolled to the maximum in that direction, the user agent will select the next spatial navigation container up the ancestry chain, and recursively repeat the above process until it finds some element to focus or scroll, or reaches the root element.
1209+
</li>
1210+
</ul>
11801211

11811212
<p class="note">注記:
11821213
この処理~modelの帰結として、
@@ -2661,10 +2692,10 @@ <h3 title="Navigation">8.3. ~navi</h3>
26612692
</li>
26622693
<li>
26632694
~IF[
2664-
%~event~target は`手動で~scrollできる$
2695+
%~event~target は【 %方向 へ】`手動で~scrollできる$
26652696
【! 不要:%~event~target は`~scroll容器$である】
26662697
]~AND[
2667-
%~event~target 上の `spatial-navigation-action$p ~propの算出d値 ~EQ `scroll$v
2698+
%~event~target `spatial-navigation-action$p ~propの算出d値 ~EQ `scroll$v
26682699
26692700
⇒#
26702701
`要素をある方向へ~scrollする$( %~event~target, %方向 );
@@ -2697,9 +2728,9 @@ <h3 title="Navigation">8.3. ~navi</h3>
26972728
<li>
26982729
<p>
26992730
~IF[
2700-
%~event~target 上の `spatial-navigation-action$p ~propの算出d値 ~NEQ `focus$v
2731+
%~event~target `spatial-navigation-action$p ~propの算出d値 ~NEQ `focus$v
27012732
]~AND[
2702-
%~event~target は`手動で~scrollできる$
2733+
%~event~target は【 %方向 へ】`手動で~scrollできる$
27032734
]:
27042735
</p>
27052736
<ol>
@@ -2795,7 +2826,7 @@ <h3 title="Navigation">8.3. ~navi</h3>
27952826
~IF[
27962827
%可視のみか ~EQ ~T
27972828
]~AND[
2798-
%容器 は`手動で~scrollできる$
2829+
%容器 は【 %方向 へ】`手動で~scrollできる$
27992830
【!不要`~scroll容器$である】
28002831
]:
28012832
</p>
@@ -3590,7 +3621,7 @@ <h3 title="Focus Navigation Heuristics">8.4. ~focus~naviの経験則</h3>
35903621

35913622
<p class="note">注記:
35923623
この一般~公式は、
3593-
いくつかの,良さげな代替から選取られた
3624+
いくつかの,良さげな代替から~~選ばれた
35943625
— 一連の
35953626
`~UX~test事例@https://wicg.github.io/spatial-navigation/tests/ux/list.html$
35963627
にて、
@@ -3821,24 +3852,39 @@ <h3 title="Controlling the interaction with scrolling: the spatial-navigation-ac
38213852
<dl>
38223853
<dt>`auto@v</dt>
38233854
<dd>
3824-
`~scroll容器$の中の要請された方向に,可視かつ~focus可能な要素が在る場合、
3855+
当の`~scroll容器$の中に,要請された方向において可視かつ~focus可能な要素が在る場合、
38253856
それらのうち最も近いものが~focusされるようになる。
38263857
他の場合、
3827-
`~scroll容器$は要請された方向へ~scrollされる。
3858+
当の`~scroll容器$は要請された方向へ~scrollされる。
38283859
38293860
If there are visible focusable elements within the scroll container in the direction requested, the closest one becomes focused. Otherwise, the scroll container is scrolled in the direction requested.
38303861
</dd>
38313862

38323863
<dt>`focus@v</dt>
38333864
<dd>
3834-
`~scroll容器$の中【の要請された方向】に,~focus可能な要素が在れば
3835-
— それが可視かどうかに関わらず —
3836-
~focusは,それらのうち最も近いものへ移動される。
3837-
無い場合、
3838-
~scroll容器は`~scrollされない^emことに加え、
3865+
<p>
3866+
~AND↓ が満たされる場合…
3867+
</p>
3868+
<ul>
3869+
<li>
3870+
当の`~scroll容器$の中に,【要請された方向において】~focus可能な要素(可視か否かは問わない)が在る
3871+
</li>
3872+
<li>
3873+
当の容器を要請された方向へ`手動で~scrollできる$
3874+
</li>
3875+
</ul>
3876+
<p>
3877+
…場合、
3878+
~focusは,最初の条件を満たす要素のうち最も近いものへ移動される。
3879+
</p>
3880+
3881+
<p>
3882+
他の場合、
3883+
当の~scroll容器は`~scrollされない^emことに加え、
38393884
探索は先祖上の連鎖へ遡るように継続される。
3885+
</p>
38403886
3841-
The focus is moved to the nearest focusable element within the scroll container, regardless of whether it is visible. If there are none, the scroll container is not scrolled, and the search continues up the ancestry chain instead.
3887+
The focus is moved to the nearest focusable element within the scroll container if it can be manually scrolled in that direction, regardless of whether it is visible. If there are none or it can’t be scrolled in that direction, the scroll container is not scrolled, and the search continues up the ancestry chain instead.
38423888
</dd>
38433889
<dd class="note">注記:
38443890
`~scroll容器$は、
@@ -3858,16 +3904,18 @@ <h3 title="Controlling the interaction with scrolling: the spatial-navigation-ac
38583904
<dt>`scroll@v</dt>
38593905
<dd>
38603906
現在~focusされている要素が`~scroll容器$でない場合、
3861-
先祖`~scroll容器$上のこの値は `auto$v と同じ効果になる。
3907+
先祖`~scroll容器$に対する この値は `auto$v と同じ効果になる。
38623908
38633909
If the currently focused element is not itself a scroll container, this value on an ancestor scroll container has the same effect as auto.
38643910
</dd>
38653911
<dd>
3866-
現在~focusされている要素が`~scroll容器$である場合、
3867-
~focus可能な子孫の有無に関わらず,要請された方向に~scrollされ、
3912+
現在~focusされている要素が[
3913+
`~scroll容器$であって,要請された方向へ`手動で~scrollできる$
3914+
]場合、
3915+
~focus可能な子孫の有無を問わず,要請された方向に~scrollされ、
38683916
どの要素が~focusされているかは変更しない。
38693917
3870-
If the currently focused element is a scroll container, it is scrolled in the direction requested without changing which element is in focus, regardless of the presence of focusable descendants.
3918+
If the currently focused element is a scroll container and can be manually scrolled in the direction requested, it is scrolled in the direction requested without changing which element is in focus, regardless of the presence of focusable descendants.
38713919
</dd>
38723920
<dd class="note">注記:
38733921
このことは、[
@@ -4112,20 +4160,24 @@ <h2 title="Appendix A. Scroll extensions">付録 A. ~scroll拡張</h2>
41124160
</p>
41134161

41144162
<p>
4115-
~AND↓ を満たす要素 %要素 は、
4116-
所与の方向 %方向 へ
4163+
所与の
4164+
( 要素 %要素, 方向 %方向 )
4165+
に対し,
4166+
%要素 を %方向 へ
41174167
`手動で~scrollできる@
4118-
( `can be manually scrolled^en )とされる:
4168+
( `can be manually scrolled^en )
4169+
とは、
4170+
%要素 が確立する`首要~box$ %~box に関して,
4171+
~AND↓ が満たされることをいう:
41194172
41204173
An element e can be manually scrolled in a given direction d if:
41214174
</p>
4122-
41234175
<ul>
41244176
<li>
4125-
%要素 が確立する`首要~box$ %~box は、
4126-
`~scroll容器$である
4177+
<p>
4178+
%~box は`~scroll容器$である
41274179
4128-
The principal box established by e is a scroll container, and
4180+
The principal box established by e is a scroll container
41294181
</li>
41304182
<li>
41314183
<p>
@@ -4135,22 +4187,32 @@ <h2 title="Appendix A. Scroll extensions">付録 A. ~scroll拡張</h2>
41354187
<li>
41364188
`up^l / `down^l
41374189
4190+
4191+
`縦~軸$は %~box の`~scroll可能な軸$である【!d’s axis】
4192+
]~AND[
41384193
%要素 の `overflow-y$p ~propの算出d値 ~NEQ `hidden$v
4139-
4140-
if d is up or down, the computed value of the overflow-y property is not hidden, and
4194+
41414195
</li>
41424196
<li>
41434197
`left^l / `right^l
41444198
4199+
4200+
`横~軸$は %~box の`~scroll可能な軸$である【!d’s axis】
4201+
]~AND[
41454202
%要素 の `overflow-x$p ~propの算出d値 ~NEQ `hidden$v
4203+
4204+
</li>
4205+
</ul>
4206+
4207+
in d’s axis, and
4208+
4209+
if d is up or down, the computed value of the overflow-y property is not hidden, and
41464210
41474211
if d is left or right, the computed value of the overflow-x property is not hidden, and
41484212
</li>
4149-
</ul>
4150-
</li>
41514213
<li>
41524214
%~box は
4153-
%方向 において`~scroll境界$に来てはいない
4215+
%方向 において`~scroll境界$に達していない【!not at】
41544216
41554217
e is not at the scroll boundary in the direction d
41564218
</li>

0 commit comments

Comments
 (0)