You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
2540
2544
• its syntax is none | <integer [1,∞]>
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
2543
2545
• it unconditionally sets block-ellipsis to auto
2546
+
• it sets continue to -webkit-legacy instead of collapse when an <integer [1,∞]> is specified (as if the -webkit-legacy keyword was set on line-clamp)
2544
2547
</div>
2545
2548
2546
2549
<div>
@@ -2841,9 +2844,9 @@ <h3 title="Fragmentation of Overflow: the continue property">5.3. ~overflowの
2841
2844
<divclass="example">
2842
2845
<p>
2843
2846
ある記事に
2844
-
— 下に図示するように —
2845
-
行内~方向に~overflowしている長い行lがあり,
2846
-
末尾には`断片化~方向$に収まり切らない行lたち(図の赤色)があるとする:
2847
+
— 下に図示するとおり —
2848
+
`行内~基底~方向$に~overflowしている長い行lがあり,
2849
+
末尾には`塊~次元$に収まり切らない行lたち(図の赤色)があるとする:
2847
2850
</p>
2848
2851
2849
2852
<figure>`continue-flow^dgm
@@ -2852,35 +2855,49 @@ <h3 title="Fragmentation of Overflow: the continue property">5.3. ~overflowの
2852
2855
<p>
2853
2856
[
2854
2857
`continue$p, `overflow$p
2855
-
]~propの組合nに基づいて,異なる描画がアリになる:
2858
+
]~propの組合nに応じて,異なる描画がアリになる:
2859
+
</p>
2860
+
<ul>
2861
+
<li>
2862
+
<p>
2863
+
`continue$p が `auto$v1 の場合:
2856
2864
</p>
2857
2865
2858
2866
<table><thead>
2859
-
<tr><thscope="row">`continue$p
2860
-
<th>`discard$v1
2861
-
<th>`auto$v1
2862
-
<th>`discard$v1
2863
-
<th>`auto$v1
2864
-
2865
-
<tr><thscope="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
2870
2870
<tbody>
2871
2871
2872
-
<tr><thscope="row">描画
2873
-
<td>`continue-discard-visible^dgm
2872
+
<tr><th>描画
2874
2873
<td>`continue-auto-visible^dgm
2875
-
<td>`continue-discard-hidden^dgm
2876
2874
<td>`continue-auto-hidden^dgm
2877
2875
</table>
2876
+
</li>
2877
+
<li>
2878
+
<p>
2879
+
`continue$p が[
2880
+
`collapse$v1 / `discard$v1
2881
+
]の場合:
2882
+
</p>
2878
2883
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>
2879
2896
◎
2880
-
Givenan 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.
2881
2898
• article with one excessively long line and four more that can fit in the block direction
2882
2899
◎
2883
-
| continue: discard | continue: auto
2900
+
| continue: collapse / continue: discard | continue: auto
2884
2901
overflow: visible | rendering with continue:discard and overflow:visible | rendering with continue:auto and overflow:visible
2885
2902
overflow: hidden | rendering with continue:discard and overflow:hidden | rendering with continue:auto and overflow:hidden
2886
2903
</div>
@@ -2992,12 +3009,20 @@ <h3 title="Fragmentation of Overflow: the continue property">5.3. ~overflowの
2992
3009
</ul>
2993
3010
<p>
2994
3011
…ときは、
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は:
3000
3013
</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>
3001
3026
◎
3002
3027
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:
3003
3028
• 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の
3006
3031
3007
3032
<pclass="note">注記:
3008
3033
このことは、
3009
-
`line-clamp$p は,上に挙げた条件 (V), (W) に関して[
3034
+
`line-clamp$p は,
3035
+
`-webkit-legacy$v1 を伴わずに設定されたならば、
3036
+
上に挙げた条件 (V), (W) に関して[
3010
3037
どちらも満たされる/どちらも満たされない
3011
3038
]場合は働くが[
3012
3039
(V) は満たされないが (W) は満たされる
@@ -3016,7 +3043,7 @@ <h3 title="Fragmentation of Overflow: the continue property">5.3. ~overflowの
3016
3043
`continue$p ~propは適用されなくなるので。
3017
3044
【[ (V) は満たされるが (W) は満たされない場合]については、言及されていない。】
3018
3045
◎
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.
0 commit comments