Skip to content

Commit f6b1ded

Browse files
committed
[css-break] Specify entrapment of forced breaks by monolithic elements.
1 parent 69414a9 commit f6b1ded

2 files changed

Lines changed: 22 additions & 8 deletions

File tree

css-break/Overview.bs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -571,9 +571,6 @@ Possible Break Points</h3>
571571
<dt id="btw-lines">Class B</dt>
572572
<dd>
573573
Between line boxes inside a block container box.
574-
575-
Note: Since line boxes cannot be broken,
576-
''inline-block'' and ''inline-table'' boxes cannot be fragmented.
577574
</dd>
578575
<dt id="end-block">Class C</dt>
579576
<dd>
@@ -602,13 +599,24 @@ Possible Break Points</h3>
602599
scrollable elements, or a single line of text content.
603600
Such content is considered <dfn>monolithic</dfn>:
604601
it contains no possible break points.
605-
In addition to any content which is not fragmentable,
602+
Any forced breaks within such boxes
603+
therefore cannot split the box,
604+
and must therefore also be ignored by the box’s own fragmentation context.
605+
606+
<p>
607+
In addition to any content which is not generally fragmentable,
606608
UAs may consider as <i>monolithic</i> any elements with
607609
'overflow' set to ''overflow/auto'' or ''overflow/scroll'' and
608610
any elements with ''overflow: hidden'' and a non-''height/auto''
609611
<a href="http://www.w3.org/TR/css3-writing-modes/#block-size">logical height</a>
610612
(and no specified maximum logical height).
611613

614+
<p>
615+
Since line boxes contain no possible break points,
616+
''inline-block'' and ''inline-table'' boxes
617+
(and other inline-level <a>display types</a> that establish a new <a>formatting context</a>)
618+
may also be considered <a>monolithic</a>.
619+
612620
<h3 id="break-types">
613621
Types of Breaks</h3>
614622

css-break/Overview.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,9 +538,7 @@ <h3 class="heading settled" data-level="4.1" id="possible-breaks"><span class="s
538538
multi-column column boxes.
539539
</dl>
540540
<dt id="btw-lines"><a class="self-link" href="#btw-lines"></a>Class B
541-
<dd>
542-
Between line boxes inside a block container box.
543-
<p class="note" role="note">Note: Since line boxes cannot be broken, <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-display-3/#valdef-display-inline-block">inline-block</a> and <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-display-3/#valdef-display-inline-table">inline-table</a> boxes cannot be fragmented.</p>
541+
<dd> Between line boxes inside a block container box.
544542
<dt id="end-block"><a class="self-link" href="#end-block"></a>Class C
545543
<dd> Between the content edge of a block container box and the outer edges of its
546544
child content (margin edges of block-level children or line box
@@ -557,9 +555,15 @@ <h3 class="heading settled" data-level="4.1" id="possible-breaks"><span class="s
557555
scrollable elements, or a single line of text content.
558556
Such content is considered <dfn data-dfn-type="dfn" data-noexport="" id="monolithic">monolithic<a class="self-link" href="#monolithic"></a></dfn>:
559557
it contains no possible break points.
560-
In addition to any content which is not fragmentable,
558+
Any forced breaks within such boxes
559+
therefore cannot split the box,
560+
and must therefore also be ignored by the box’s own fragmentation context. </p>
561+
<p> In addition to any content which is not generally fragmentable,
561562
UAs may consider as <a data-link-type="dfn" href="#monolithic">monolithic</a> any elements with <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-overflow-3/#propdef-overflow">overflow</a> set to <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-overflow-3/#valdef-overflow-auto">auto</a> or <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-overflow-3/#valdef-overflow-scroll">scroll</a> and
562563
any elements with <a class="css" data-link-type="propdesc" href="https://drafts.csswg.org/css-overflow-3/#propdef-overflow">overflow: hidden</a> and a non-<span class="css">auto</span> <a href="http://www.w3.org/TR/css3-writing-modes/#block-size">logical height</a> (and no specified maximum logical height). </p>
564+
<p> Since line boxes contain no possible break points, <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-display-3/#valdef-display-inline-block">inline-block</a> and <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-display-3/#valdef-display-inline-table">inline-table</a> boxes
565+
(and other inline-level <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-3/#display-type">display types</a> that establish a new <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-3/#formatting-context">formatting context</a>)
566+
may also be considered <a data-link-type="dfn" href="#monolithic">monolithic</a>. </p>
563567
<h3 class="heading settled" data-level="4.2" id="break-types"><span class="secno">4.2. </span><span class="content"> Types of Breaks</span><a class="self-link" href="#break-types"></a></h3>
564568
<p> There are different types of breaks in CSS, defined based on the type of
565569
fragmentainers they span: </p>
@@ -1131,6 +1135,8 @@ <h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="con
11311135
<li>
11321136
<a data-link-type="biblio" href="#biblio-css-display-3">[css-display-3]</a> defines the following terms:
11331137
<ul>
1138+
<li><a href="https://drafts.csswg.org/css-display-3/#display-type">display type</a>
1139+
<li><a href="https://drafts.csswg.org/css-display-3/#formatting-context">formatting context</a>
11341140
<li><a href="https://drafts.csswg.org/css-display-3/#valdef-display-inline-block">inline-block</a>
11351141
<li><a href="https://drafts.csswg.org/css-display-3/#valdef-display-inline-table">inline-table</a>
11361142
</ul>

0 commit comments

Comments
 (0)