Skip to content

Commit dcc75ed

Browse files
committed
[css-overflow-4] continue:discard makes the box establish an IFC
See #10323
1 parent d64766c commit dcc75ed

File tree

1 file changed

+2
-43
lines changed

1 file changed

+2
-43
lines changed

css-overflow-4/Overview.bs

+2-43
Original file line numberDiff line numberDiff line change
@@ -975,45 +975,6 @@ Forcing a Break After a Set Number of Lines: the 'max-lines' property</h3>
975975
If fewer than <var>N</var> line boxes exist,
976976
then 'max-lines' introduces no <a>region break</a>.
977977

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-
1017978
Note: This implies that 'max-lines' has no effect when applied to [=multi-column containers=],
1018979
since any line box they contain are nested into [=independent formatting contexts=].
1019980

@@ -1075,15 +1036,15 @@ Fragmentation of Overflow: the 'continue' property</h3>
10751036

10761037
<dt><dfn>discard</dfn>
10771038
<dd>
1078-
The box becomes a [=fragmentation container=]
1039+
The box must [=establish an independent formatting context=]
1040+
and becomes a [=fragmentation container=]
10791041
that captures <a>region breaks</a>,
10801042
if it is not already.
10811043
[[!CSS-BREAK-3]]
10821044
Content after the first [=region break=] is not rendered (see below).
10831045
(If the box is a [=multi-column container=],
10841046
any [=overflow columns=] are also not rendered.)
10851047

1086-
10871048
Note: This [=region break=] might be <a lt="forced break">forced</a>
10881049
(e.g. imposed by 'max-lines' or by another mechanism,
10891050
such as the 'break-before'/'break-after' properties)
@@ -1095,8 +1056,6 @@ Fragmentation of Overflow: the 'continue' property</h3>
10951056
do not cause any content to be discarded.
10961057
</dl>
10971058

1098-
Note: This property does <em>not</em> cause the box to [=establish an independent formatting context=].
1099-
11001059
<div class=example>
11011060
Given an article with one excessively long overflowing line,
11021061
and four more lines than can fit in the [=fragmentation direction=] as in the illustration bellow,

0 commit comments

Comments
 (0)