Skip to content

Commit b1b4520

Browse files
committed
[css-overflow-3] Clarify what breaks trigger discarding of subsequent content in 'continue:discard'.
1 parent 3a2efb3 commit b1b4520

File tree

1 file changed

+42
-40
lines changed

1 file changed

+42
-40
lines changed

css-overflow-3/Overview.bs

Lines changed: 42 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,48 +1588,20 @@ Fragmentation of Overflow: the 'continue' property</h3>
15881588
that captures <a>region breaks</a>,
15891589
if it is not already.
15901590
[[!CSS-BREAK-3]]
1591+
Content after the first [=region break=] is not rendered (see below).
1592+
(If the box is a [=multi-column container=],
1593+
any [=overflow columns=] are also not rendered.)
15911594

1592-
The position of the first <a lt="forced break">forced</a> [=region break=]
1593-
(whether imposed by 'max-lines' or by another mechanism,
1594-
such as the 'break-before'/'break-after' properties)
1595-
or the position of the first [=unforced break=],
1596-
which ever comes sooner,
1597-
is treated as the end of the <a>fragmentation container</a>,
1598-
and the remaining content after the [=fragmentation break=] is discarded,
1599-
similar to if it were ''display: none'':
1600-
* It is not rendered
1601-
* Just as the content is visually hidden, it is not made available for speech rendering
1602-
* It does not allow user interaction
1603-
* Issue(2970): Make sure effects on OM are well defined
1604-
* [=Positioned=] elements whose static position is in the discarded content are not rendered.
1605-
1606-
Issue(2971): Are we sure about that?
1607-
Discussions in the <a href="https://lists.w3.org/Archives/Public/www-style/2018Jul/0030.html">Sydney F2F meeting</a>
1608-
seemed to generally converge on this,
1609-
but other possibilities were raised.
1610-
1611-
However, since intrinsic sizes are calculated across <a>fragmentation containers</a>,
1612-
this content <em>is</em> taken into account
1613-
for the purpose of finding the box’s
1614-
<a lt="min-content inline size">min-content</a> and <a>max-content</a> <a>inline sizes</a>
1615-
(see [[css-break-3#varying-size-boxes]]).
1616-
<a lt="min-content inline size">Min-content</a> and <a>max-content</a> <a>block sizes</a>
1617-
are calculated based on the content
1618-
from the start of the [=fragmented flow=]
1619-
to the first [=forced break=] if any,
1620-
or to the end of the [=fragmented flow=] if there is no forced break.
1621-
1622-
Note: Calculating intrinsic block sizes to the first forced <em>or unforced</em> break
1623-
would cause intrinsic sizes to depend on layout, which would cause circularities.
1624-
1625-
The effect on [=multi-column containers=] is to discard any [=overflow column=].
1626-
1627-
Note: In the case of <a href="https://www.w3.org/TR/css-break-3/#parallel-flows">parallel fragmentation flows</a>,
1628-
content occurring after the <a>fragmentation break</a> in the box tree
1629-
could still be rendered,
1630-
if it is laid out above the position
1631-
representing the end of this <a>fragmentation container</a>.
16321595

1596+
Note: This [=region break=] might be <a lt="forced break">forced</a>
1597+
(e.g. imposed by 'max-lines' or by another mechanism,
1598+
such as the 'break-before'/'break-after' properties)
1599+
or [=unforced break|unforced=]
1600+
(e.g. if the content would otherwise overflow this [=fragmentation container=]
1601+
due to its size constraints).
1602+
Breaks applying to other [=fragmentation contexts=]
1603+
(such as pagination of this box itself)
1604+
do not cause any content to be discarded.
16331605
</dl>
16341606

16351607
Note: This property does <em>not</em> cause the box to [=establish an independent formatting context=].
@@ -1674,6 +1646,36 @@ Fragmentation of Overflow: the 'continue' property</h3>
16741646
</figure>
16751647
</div>
16761648

1649+
Content that is “not rendered” due to ''continue: discard''
1650+
is discarded, similar to ''display: none'':
1651+
* It is not rendered.
1652+
* It is also not made available for speech rendering.
1653+
* It does not allow user interaction.
1654+
* Issue(2970): Make sure effects on OM are well defined
1655+
* Issue(2971): What about [=positioned=] elements whose static position is in the discarded content are not rendered?
1656+
See also discussions in the <a href="https://lists.w3.org/Archives/Public/www-style/2018Jul/0030.html">Sydney F2F meeting</a>.
1657+
1658+
However, since intrinsic sizes are calculated across <a>fragmentation containers</a>,
1659+
this content <em>is</em> taken into account
1660+
for the purpose of finding the box’s
1661+
<a lt="min-content inline size">min-content</a> and <a>max-content</a> <a>inline sizes</a>
1662+
(see [[css-break-3#varying-size-boxes]]).
1663+
<a lt="min-content inline size">Min-content</a> and <a>max-content</a> <a>block sizes</a>
1664+
are calculated based on the content
1665+
from the start of the [=fragmented flow=]
1666+
to the first [=forced break=] if any,
1667+
or to the end of the [=fragmented flow=] if there is no forced break.
1668+
1669+
<!--
1670+
Calculating intrinsic block sizes to the first forced <em>or unforced</em> break
1671+
would cause intrinsic sizes to depend on layout, which would cause circularities.
1672+
-->
1673+
1674+
Note: In the case of <a href="https://www.w3.org/TR/css-break-3/#parallel-flows">parallel fragmentation flows</a>,
1675+
content occurring after the <a>fragmentation break</a> in the box tree
1676+
could still be rendered,
1677+
if it is laid out above the position
1678+
representing the end of this <a>fragmentation container</a>.
16771679

16781680
<h2 class="no-num non-normative" id="priv-sec">Appendix A. Privacy and Security Considerations</h2>
16791681
===============================================

0 commit comments

Comments
 (0)