Skip to content

Commit 19105b1

Browse files
committed
[css-text-4] Fix box/element stuff, define propagation.
1 parent e2dd336 commit 19105b1

File tree

1 file changed

+22
-15
lines changed

1 file changed

+22
-15
lines changed

css-text-4/Overview.bs

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,13 @@ Inline breaks between boxes: the 'wrap-before'/'wrap-after' properties</h3>
274274
<dt><dfn>auto</dfn>
275275
<dd>
276276
Lines may break at allowed break points
277-
before and after the element,
277+
before and after the box,
278278
as determined by the line-breaking rules in effect.
279279

280280
<dt><dfn>avoid</dfn>
281281
<dd>
282-
Line breaking is suppressed before/after the element:
283-
the UA may only break before/after the element
282+
Line breaking is suppressed immediately before/after the box:
283+
the UA may only break there
284284
if there are no other valid break points
285285
in the line.
286286
If the text breaks,
@@ -299,16 +299,23 @@ Inline breaks between boxes: the 'wrap-before'/'wrap-after' properties</h3>
299299

300300
<dt><dfn>line</dfn>
301301
<dd>
302-
Force a line break before/after the element
303-
if the element is an inline-level box.
302+
Force a line break immediately before/after the box
303+
if box is an <a>inline-level</a> box.
304304

305305
<dt><dfn>flex</dfn>
306306
<dd>
307-
Force a <a>flex line</a> break before/after the element
308-
if the element is a flex item
309-
in a multi-line flex container.
307+
Force a <a>flex line</a> break immediately before/after the box
308+
if the box is a <a>flex item</a>
309+
in a <a href="http://www.w3.org/TR/css-flexbox-1/#multi_line">multi-line flex container</a>.
310310
</dl>
311311

312+
Forced line breaks on <a>inline-level</a> boxes propagate upward
313+
through any parent <a>inline boxes</a>
314+
the same way forced breaks on <a>block-level</a> boxes propagate upward
315+
through any parent <a>block boxes</a>
316+
in the same <a>fragmentation context</a>.
317+
[[!CSS3-BREAK]]
318+
312319
<h3 id="wrap-inside">
313320
Line breaks within boxes: the 'wrap-inside' property</h3>
314321

@@ -327,22 +334,22 @@ Line breaks within boxes: the 'wrap-inside' property</h3>
327334
<dt><dfn>auto</dfn>
328335
<dd>
329336
Lines may break at allowed break points
330-
within the element,
337+
within the box,
331338
as determined by the line-breaking rules in effect.
332339

333340
<dt><dfn>avoid</dfn>
334341
<dd>
335-
Line breaking is suppressed within the element:
336-
the UA may only break within the element
342+
Line breaking is suppressed within the box:
343+
the UA may only break within the box
337344
if there are no other valid break points in the line.
338345
If the text breaks,
339346
line-breaking restrictions are honored as for
340347
''wrap-inside/auto''.
341348

342-
If elements with ''wrap-inside/avoid'' are nested
343-
and the UA must break within these elements,
344-
a break in an outer element must be used
345-
before a break within an inner element may be used.
349+
If boxes with ''wrap-inside/avoid'' are nested
350+
and the UA must break within these boxes,
351+
a break in an outer box must be used
352+
before a break within an inner box may be used.
346353
</dl>
347354

348355
<h4 id="example-avoid">

0 commit comments

Comments
 (0)