Skip to content

Commit 4f59133

Browse files
committed
[css-break-3] Define box-split fragments to be affected by box-decoration-break. Fixes #1706
1 parent 9e8cbec commit 4f59133

File tree

1 file changed

+53
-8
lines changed

1 file changed

+53
-8
lines changed

css-break-3/Overview.bs

+53-8
Original file line numberDiff line numberDiff line change
@@ -1040,10 +1040,19 @@ Fragmented Borders and Backgrounds: the 'box-decoration-break' property</h3>
10401040
on the left, the value ''slice'', on the right the value ''clone''.
10411041
</div>
10421042

1043-
<p>UAs may also apply 'box-decoration-break' to control rendering
1044-
at bidi-imposed breaks, i.e. when bidi reordering causes an inline
1045-
to split into non-contiguous fragments. Otherwise such breaks are
1046-
always handled as ''slice''.
1043+
<p>UAs should also apply 'box-decoration-break'
1044+
to control rendering at bidi-imposed breaks--
1045+
i.e. when bidi reordering causes an inline to split into non-contiguous fragments--
1046+
and/or at display-type&ndash;imposed breaks--
1047+
i.e. when a higher-level <a>display type</a>
1048+
(such as a <a>block-level box</a> / <a href="https://www.w3.org/TR/css-multicol-1/#spanning-columns">column spanner</a>)
1049+
splits an incompatible ancestor
1050+
(such as an <a>inline box</a> / <a>block container</a>).
1051+
Otherwise such breaks must be handled as ''slice''.
1052+
See [[css-writing-modes-3#bidi-algo|Applying the Bidirectional Reorderign Algorithm]]
1053+
in [[css-writing-modes-3#text-direction|CSS Writing Modes]],
1054+
<a href="https://www.w3.org/TR/CSS2/visuren.html#box-gen">CSS2&sect;9.2 Block-level elements and block boxes</a>,
1055+
and <a href="https://www.w3.org/TR/css-multicol-1/#spanning-columns">CSS Multi-column Layout &sect;6 Spanning Columns</a>.
10471056

10481057
<p class=note>
10491058
For inline elements, which side of a fragment is considered the broken edge
@@ -1162,10 +1171,46 @@ Changes</h2>
11621171
<a href="https://www.w3.org/TR/2017/CR-css-break-3-20170209/">9 February 2017 Candidate Recommendation</a>:
11631172

11641173
<ul>
1165-
<li id="change-2018-aliasing">Clarify the mechanism of aliasing for the page-break-* properties
1166-
<blockquote>
1167-
<p>by treating the 'page-break-*' properties as <del>shorthands</del> <ins>[=legacy shorthands=]</ins> for the 'break-*' properties
1168-
</blockquote>
1174+
<li id="change-2018-bidi-split-breaks">
1175+
Clarify that bidi-imposed breaks and block-in-inline breaks create fragments,
1176+
and that their formatting should be controlled by 'box-decoration-break'.
1177+
(<a href="https://github.com/w3c/csswg-drafts/issues/1706">Issue 1706</a>)
1178+
<blockquote>
1179+
<ins><p class="note">
1180+
A box can be broken into multiple <a>fragments</a>
1181+
also due to bidi reordering of text
1182+
(see [[css-writing-modes-3#bidi-algo|Applying the Bidirectional Reorderign Algorithm]]
1183+
in [[css-writing-modes-3#text-direction|CSS Writing Modes]])
1184+
or higher-level <a>display type</a> box splitting,
1185+
e.g. <a href="https://www.w3.org/TR/CSS2/visuren.html#img-anon-block">block-in-inline splitting</a>
1186+
(see <a href="https://www.w3.org/TR/CSS2/visuren.html#box-gen">CSS2&sect;9.2</a>)
1187+
or <a href="https://www.w3.org/TR/css-multicol-1/#spanning-columns">column-spanner-in-block</a> splitting
1188+
(see <a href="https://www.w3.org/TR/css-multicol-1/#spanning-columns">CSS Multi-column Layout</a>).
1189+
The division into <a>box fragments</a> in these cases
1190+
does not depend on layout (sizing/positioning of content).</p></ins>
1191+
</blockquote>
1192+
<blockquote>
1193+
<p>UAs <del>may</del><ins>should</ins> also apply 'box-decoration-break' to control rendering
1194+
at bidi-imposed breaks--
1195+
i.e. when bidi reordering causes an inline
1196+
to split into non-contiguous fragments<ins>--
1197+
and/or at display-type&ndash;imposed breaks--
1198+
i.e. when a higher-level <a>display type</a>
1199+
(such as a <a>block-level box</a> / <a href="https://www.w3.org/TR/css-multicol-1/#spanning-columns">column spanner</a>)
1200+
splits an incompatible ancestor
1201+
(such as an <a>inline box</a> / <a>block container</a>)</ins>.
1202+
Otherwise such breaks must be handled as ''slice''.
1203+
<ins>See [[css-writing-modes-3#bidi-algo|Applying the Bidirectional Reorderign Algorithm]]
1204+
in [[css-writing-modes-3#text-direction|CSS Writing Modes]],
1205+
<a href="https://www.w3.org/TR/CSS2/visuren.html#box-gen">CSS2&sect;9.2 Block-level elements and block boxes</a>,
1206+
and <a href="https://www.w3.org/TR/css-multicol-1/#spanning-columns">CSS Multi-column Layout &sect;6 Spanning Columns</a>.</ins></p>
1207+
</blockquote>
1208+
<li id="change-2018-aliasing">
1209+
Clarify the mechanism of aliasing for the page-break-* properties.
1210+
(<a href="https://github.com/w3c/csswg-drafts/issues/866">Issue 866</a>)
1211+
<blockquote>
1212+
<p>by treating the 'page-break-*' properties as <del>shorthands</del> <ins>[=legacy shorthands=]</ins> for the 'break-*' properties
1213+
</blockquote>
11691214
</ul>
11701215

11711216
<p>The following significant changes were made since the

0 commit comments

Comments
 (0)