Skip to content

Commit 38ada99

Browse files
[css-overflow-4] 各種更新
phrasing tweak w3c/csswg-drafts@db529d1 Tweak note on line-clamp and webkit-box w3c/csswg-drafts@1ddd492 Adjust example 6 to also work with continue:collapse w3c/csswg-drafts@a80175f
1 parent 18a113d commit 38ada99

File tree

1 file changed

+75
-48
lines changed

1 file changed

+75
-48
lines changed

css-overflow4-ja.html

Lines changed: 75 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@
208208
●●options
209209

210210
spec_title:CSS Overflow Module Level 4
211-
spec_date:2025-06-03
212-
trans_update:2025-06-05
211+
spec_date:2025-06-06
212+
trans_update:2025-06-08
213213
source_checked:240219
214214
page_state_key:CSS
215215
original_url:https://drafts.csswg.org/css-overflow-4/
@@ -420,6 +420,12 @@
420420
行内~size:~CSSWM#inline-size
421421
~size:~CSSWM#block-size
422422
`塊-軸$における 〜size → 塊~size
423+
行内~次元:~CSSWM#inline-dimension
424+
塊~次元:~CSSWM#block-dimension
425+
行内-軸:~CSSWM#inline-axis
426+
塊-軸:~CSSWM#block-axis
427+
行内~基底~方向:~CSSWM#inline-base-direction
428+
423429
~border辺:~CSSBOX#border-edge
424430
425431
BFC:~CSSDISP#bfc → 塊~整形~文脈
@@ -446,7 +452,6 @@
446452
断片化~分断:~CSSBREAK#fragmentation-break
447453
断片化~容器:~CSSBREAK#fragmentation-container
448454
断片化~文脈:~CSSBREAK#fragmentation-context
449-
断片化~方向:~CSSBREAK#fragmentation-direction
450455
断片~化~flow:~CSSBREAK#fragmented-flow
451456
452457
~layout封込め:~CSSCONTAIN#layout-containment
@@ -497,11 +502,6 @@
497502
静的~位置:~CSSPOS#static-position
498503
匿名:~CSSDISP#anonymous
499504
500-
行内~次元:~CSSWM#inline-dimension
501-
行内-軸:~CSSWM#inline-axis
502-
塊-軸:~CSSWM#block-axis
503-
行内~基底~方向:~CSSWM#inline-base-direction
504-
505505
塗り封込め:~CSSCONTAIN#paint-containment
506506
507507
~level 3:#biblio-css-overflow-3
@@ -2515,32 +2515,35 @@ <h4 title="Legacy compatibility">5.1.1. 旧来のものとの互換性</h4>
25152515
<div>
25162516
<p>
25172517
`-webkit-line-clamp$p は、
2518-
`line-clamp$p と同様に
2518+
`line-clamp$p と同様に[
25192519
`max-lines$p,
2520-
`continue$p,
2521-
`block-ellipsis$p
2520+
`block-ellipsis$p,
2521+
`continue$p
25222522
]用の略式である
25232523
— ただし:
25242524
</p>
25252525
<ul>
25262526
<li>
2527-
`continue$p は、
2528-
`collapse$v1 に代えて,
2529-
`-webkit-legacy$v1 に設定される
2530-
( `line-clamp$p に~keyword `-webkit-legacy$v1 が設定されたかのように)。
2527+
その構文は、[
2528+
`none^v / `integer [1,∞]$t
2529+
]しかとらない。
2530+
</li>
2531+
<li>
2532+
`block-ellipsis$p 用の値は指定できない
2533+
— それは、
2534+
無条件に `auto$v1 に設定される。
25312535
</li>
25322536
<li>
2533-
`block-ellipsis$p は
2534-
無条件に `auto$v1 に設定される
2535-
— `block-ellipsis$p 用の値は指定できない
2537+
`integer^t が指定されたときは
2538+
`continue$p は, `collapse$v1 に代えて `-webkit-legacy$v1 に設定される
2539+
( `line-clamp$p に~keyword `-webkit-legacy$v1 が設定された場合と同じく)
25362540
</li>
25372541
</ul>
25382542
2539-
Like line-clamp, -webkit-line-clamp is a shorthand of max-lines, continue, and block-ellipsis, except that:
2543+
Like line-clamp, -webkit-line-clamp is a shorthand of max-lines, block-ellipsis, and continue, except that:
25402544
• its syntax is none | &lt;integer [1,∞]&gt;
2541-
• it sets continue to -webkit-legacy instead of collapse (as if the -webkit-legacy keyword was set on line-clamp)
2542-
it sets continue to -webkit-legacy instead of discard
25432545
• it unconditionally sets block-ellipsis to auto
2546+
• it sets continue to -webkit-legacy instead of collapse when an &lt;integer [1,∞]&gt; is specified (as if the -webkit-legacy keyword was set on line-clamp)
25442547
</div>
25452548

25462549
<div>
@@ -2841,9 +2844,9 @@ <h3 title="Fragmentation of Overflow: the continue property">5.3. ~overflowの
28412844
<div class="example">
28422845
<p>
28432846
ある記事に
2844-
下に図示するように
2845-
行内~方向に~overflowしている長い行lがあり,
2846-
末尾には`断片化~方向$に収まり切らない行lたち(図の赤色)があるとする:
2847+
下に図示するとおり
2848+
`行内~基底~方向$に~overflowしている長い行lがあり,
2849+
末尾には`塊~次元$に収まり切らない行lたち(図の赤色)があるとする:
28472850
</p>
28482851

28492852
<figure>`continue-flow^dgm
@@ -2852,35 +2855,49 @@ <h3 title="Fragmentation of Overflow: the continue property">5.3. ~overflowの
28522855
<p>
28532856
28542857
`continue$p, `overflow$p
2855-
]~propの組合nに基づいて,異なる描画がアリになる:
2858+
]~propの組合nに応じて,異なる描画がアリになる:
2859+
</p>
2860+
<ul>
2861+
<li>
2862+
<p>
2863+
`continue$p が `auto$v1 の場合:
28562864
</p>
28572865

28582866
<table><thead>
2859-
<tr><th scope="row">`continue$p
2860-
<th>`discard$v1
2861-
<th>`auto$v1
2862-
<th>`discard$v1
2863-
<th>`auto$v1
2864-
2865-
<tr><th scope="row">`overflow$p
2866-
<th>`visible$v0
2867-
<th>`visible$v0
2868-
<th>`hidden$v0
2869-
<th>`hidden$v0
2867+
<tr><th>`overflow$p
2868+
<td>`visible$v0
2869+
<td>`hidden$v0
28702870
<tbody>
28712871

2872-
<tr><th scope="row">描画
2873-
<td>`continue-discard-visible^dgm
2872+
<tr><th>描画
28742873
<td>`continue-auto-visible^dgm
2875-
<td>`continue-discard-hidden^dgm
28762874
<td>`continue-auto-hidden^dgm
28772875
</table>
2876+
</li>
2877+
<li>
2878+
<p>
2879+
`continue$p が[
2880+
`collapse$v1 / `discard$v1
2881+
]の場合:
2882+
</p>
28782883

2884+
<table>
2885+
<tr><th>`overflow$p
2886+
<td>`visible$v0
2887+
<td>`hidden$v0
2888+
<tbody>
2889+
2890+
<tr><th>描画
2891+
<td>`continue-discard-visible^dgm
2892+
<td>`continue-discard-hidden^dgm
2893+
</table>
2894+
</li>
2895+
</ul>
28792896
2880-
Given an article with one excessively long overflowing line, and four more lines than can fit in the fragmentation direction as in the illustration bellow, different renderings are possible based on the combination of the overflow and continue property.
2897+
Given, as in the illustration bellow, an article with one excessively long overflowing line and four more lines in the block dimension than can fit, different renderings are possible based on the combination of the overflow and continue property.
28812898
• article with one excessively long line and four more that can fit in the block direction
28822899
2883-
| continue: discard | continue: auto
2900+
| continue: collapse / continue: discard | continue: auto
28842901
overflow: visible | rendering with continue:discard and overflow:visible | rendering with continue:auto and overflow:visible
28852902
overflow: hidden | rendering with continue:discard and overflow:hidden | rendering with continue:auto and overflow:hidden
28862903
</div>
@@ -2992,12 +3009,20 @@ <h3 title="Fragmentation of Overflow: the continue property">5.3. ~overflowの
29923009
</ul>
29933010
<p>
29943011
…ときは、
2995-
当の~boxの `display$p ~propの`算出d値$は,その指定d値に応じて[
2996-
`-webkit-box$v0 ならば `flow-root$v0 /
2997-
`-webkit-inline-box$v0 ならば `inline-block$v0
2998-
]になり、
2999-
当の~boxは,`塊~整形~文脈$【!BFC】を確立する。
3012+
当の~boxは:
30003013
</p>
3014+
<ul>
3015+
<li>
3016+
`display$p ~propの`算出d値$は、
3017+
指定d値に応じて
3018+
⇒#
3019+
`-webkit-box$v0 ならば `flow-root$v0 になる/
3020+
`-webkit-inline-box$v0 ならば `inline-block$v0 になる
3021+
</li>
3022+
<li>
3023+
`塊~整形~文脈$【!BFC】を確立する。
3024+
</li>
3025+
</ul>
30013026
30023027
Additionaliy, for compatibility (see § 5.1.1 Legacy compatibility), when the computed value of the continue property is collapse, -webkit-legacy, or discard and the computed value of the -webkit-box-orient property is vertical:
30033028
• If the specified value of the display property is -webkit-box, the computed value becomes flow-root and the box establishes a BFC.
@@ -3006,7 +3031,9 @@ <h3 title="Fragmentation of Overflow: the continue property">5.3. ~overflowの
30063031

30073032
<p class="note">注記:
30083033
このことは、
3009-
`line-clamp$p は,上に挙げた条件 (V), (W) に関して[
3034+
`line-clamp$p は,
3035+
`-webkit-legacy$v1 を伴わずに設定されたならば、
3036+
上に挙げた条件 (V), (W) に関して[
30103037
どちらも満たされる/どちらも満たされない
30113038
]場合は働くが[
30123039
(V) は満たされないが (W) は満たされる
@@ -3016,7 +3043,7 @@ <h3 title="Fragmentation of Overflow: the continue property">5.3. ~overflowの
30163043
`continue$p ~propは適用されなくなるので。
30173044
【[ (V) は満たされるが (W) は満たされない場合]については、言及されていない。】
30183045
3019-
Note: This means that line-clamp will work if both or neither of -webkit-box-orient: vertical and display: -webkit-box or display: -webkit-inline-box are set, but not if display: -webkit-box or display: -webkit-inline-box is set while -webkit-box-orient: vertical isn’t, as the box would be a flex container rather than a block container, and thus the continue property would not apply.
3046+
Note: This means that line-clamp (set without -webkit-legacy) will work if both or neither of -webkit-box-orient: vertical and display: -webkit-box or display: -webkit-inline-box are set, but not if display: -webkit-box or display: -webkit-inline-box is set while -webkit-box-orient: vertical isn’t, as the box would be a flex container rather than a block container, and thus the continue property would not apply.
30203047
</p>
30213048

30223049
<section id="line-clamp-containers">

0 commit comments

Comments
 (0)