@@ -975,45 +975,6 @@ Forcing a Break After a Set Number of Lines: the 'max-lines' property</h3>
975
975
If fewer than <var> N</var> line boxes exist,
976
976
then 'max-lines' introduces no <a>region break</a> .
977
977
978
- <div class=example>
979
- As ''continue: discard'' does not cause the element to [=establish an independent formatting context=] ,
980
- lines in a nested element with 'line-clamp' are counted,
981
- as can be seen in the examples below.
982
- <xmp highlight=markup>
983
- <div id=a>
984
- a: line 1<br>
985
- a: line 2<br>
986
- <div id=b>
987
- b: line 1<br>
988
- b: line 2<br>
989
- b: line 3<br>
990
- b: line 4<br>
991
- </div>
992
- a: line 3<br>
993
- a: line 4<br>
994
- </div>
995
- </xmp>
996
- Sample rendering given <code highlight=css> #a { line-clamp: 5; } #b { line-clamp: 2; }</code> :
997
- <pre>
998
- a: line 1
999
- a: line 2
1000
- b: line 1
1001
- b: line 2…
1002
- a: line 3…
1003
- </pre>
1004
-
1005
- Sample rendering given <code highlight=css> #a { line-clamp: 3; } #b { line-clamp: 2; }</code> :
1006
- <pre>
1007
- a: line 1
1008
- a: line 2
1009
- b: line 1…
1010
- </pre>
1011
- Note that in the second case,
1012
- the maximum of 2 lines set on element ''#b'' does not take effect,
1013
- since a forced break is introduced
1014
- before the second line of this element.
1015
- </div>
1016
-
1017
978
Note: This implies that 'max-lines' has no effect when applied to [=multi-column containers=] ,
1018
979
since any line box they contain are nested into [=independent formatting contexts=] .
1019
980
@@ -1075,15 +1036,15 @@ Fragmentation of Overflow: the 'continue' property</h3>
1075
1036
1076
1037
<dt> <dfn>discard</dfn>
1077
1038
<dd>
1078
- The box becomes a [=fragmentation container=]
1039
+ The box must [=establish an independent formatting context=]
1040
+ and becomes a [=fragmentation container=]
1079
1041
that captures <a>region breaks</a> ,
1080
1042
if it is not already.
1081
1043
[[!CSS-BREAK-3]]
1082
1044
Content after the first [=region break=] is not rendered (see below).
1083
1045
(If the box is a [=multi-column container=] ,
1084
1046
any [=overflow columns=] are also not rendered.)
1085
1047
1086
-
1087
1048
Note: This [=region break=] might be <a lt="forced break">forced</a>
1088
1049
(e.g. imposed by 'max-lines' or by another mechanism,
1089
1050
such as the 'break-before' /'break-after' properties)
@@ -1095,8 +1056,6 @@ Fragmentation of Overflow: the 'continue' property</h3>
1095
1056
do not cause any content to be discarded.
1096
1057
</dl>
1097
1058
1098
- Note: This property does <em> not</em> cause the box to [=establish an independent formatting context=] .
1099
-
1100
1059
<div class=example>
1101
1060
Given an article with one excessively long overflowing line,
1102
1061
and four more lines than can fit in the [=fragmentation direction=] as in the illustration bellow,
0 commit comments