@@ -5470,72 +5470,6 @@ Selecting How to Wrap: the 'text-wrap-style' property</h4>
54705470 dependent on the length of the word, character-based is better.
54715471 </div>
54725472
5473- <h3 id="wrap-before">
5474- Controlling Breaks Between Boxes: the 'wrap-before'/'wrap-after' properties</h3>
5475-
5476- <wpt title="This section lacks tests."></wpt>
5477-
5478- <pre class="propdef">
5479- Name : wrap-before, wrap-after
5480- Value : auto | avoid | avoid-line | avoid-flex | line | flex
5481- Initial : auto
5482- Applies to : <a>inline-level</a> boxes and <a>flex items</a>
5483- Inherited : no
5484- Percentages : n/a
5485- Computed value : specified keyword
5486- Animation type : discrete
5487- </pre>
5488-
5489- These properties specify modifications to break opportunities
5490- in line breaking (and <a>flex line</a> breaking [[CSS3-FLEXBOX]] ).
5491- Possible values:
5492-
5493- <dl dfn-for="wrap-before, wrap-after" dfn-type=value>
5494- <dt> <dfn>auto</dfn>
5495- <dd>
5496- Lines may break at allowed break points
5497- before and after the box,
5498- as determined by the line-breaking rules in effect.
5499-
5500- <dt> <dfn>avoid</dfn>
5501- <dd>
5502- Line breaking is suppressed immediately before/after the box:
5503- the UA may only break there
5504- if there are no other valid break points
5505- in the line.
5506- If the text breaks,
5507- line-breaking restrictions are honored as for
5508- ''wrap-before/auto'' .
5509-
5510- <dt> <dfn>avoid-line</dfn>
5511- <dd>
5512- Same as ''wrap-before/avoid'' ,
5513- but only for line breaks.
5514-
5515- <dt> <dfn>avoid-flex</dfn>
5516- <dd>
5517- Same as ''wrap-before/avoid'' ,
5518- but only for flex line breaks.
5519-
5520- <dt> <dfn>line</dfn>
5521- <dd>
5522- Force a line break immediately before/after the box
5523- if the box is an <a>inline-level</a> box.
5524-
5525- <dt> <dfn>flex</dfn>
5526- <dd>
5527- Force a <a>flex line</a> break immediately before/after the box
5528- if the box is a <a>flex item</a>
5529- in a <a>multi-line flex container</a> .
5530- </dl>
5531-
5532- Forced line breaks on <a>inline-level</a> boxes propagate upward
5533- through any parent <a>inline boxes</a>
5534- the same way forced breaks on <a>block-level</a> boxes propagate upward
5535- through any parent <a>block boxes</a>
5536- in the same <a>fragmentation context</a> .
5537- [[!CSS3-BREAK]]
5538-
55395473<h3 id="wrap-inside">
55405474Controlling Breaks Within Boxes: the 'wrap-inside' property</h3>
55415475
@@ -5626,6 +5560,72 @@ Example of using 'wrap-inside: avoid' in presenting a footer</h4>
56265560 </pre>
56275561 </div>
56285562
5563+ <h3 id="wrap-before">
5564+ Controlling Breaks Between Boxes: the 'wrap-before'/'wrap-after' properties</h3>
5565+
5566+ <wpt title="This section lacks tests."></wpt>
5567+
5568+ <pre class="propdef">
5569+ Name : wrap-before, wrap-after
5570+ Value : auto | avoid | avoid-line | avoid-flex | line | flex
5571+ Initial : auto
5572+ Applies to : <a>inline-level</a> boxes and <a>flex items</a>
5573+ Inherited : no
5574+ Percentages : n/a
5575+ Computed value : specified keyword
5576+ Animation type : discrete
5577+ </pre>
5578+
5579+ These properties specify modifications to break opportunities
5580+ in line breaking (and <a>flex line</a> breaking [[CSS3-FLEXBOX]] ).
5581+ Possible values:
5582+
5583+ <dl dfn-for="wrap-before, wrap-after" dfn-type=value>
5584+ <dt> <dfn>auto</dfn>
5585+ <dd>
5586+ Lines may break at allowed break points
5587+ before and after the box,
5588+ as determined by the line-breaking rules in effect.
5589+
5590+ <dt> <dfn>avoid</dfn>
5591+ <dd>
5592+ Line breaking is suppressed immediately before/after the box:
5593+ the UA may only break there
5594+ if there are no other valid break points
5595+ in the line.
5596+ If the text breaks,
5597+ line-breaking restrictions are honored as for
5598+ ''wrap-before/auto'' .
5599+
5600+ <dt> <dfn>avoid-line</dfn>
5601+ <dd>
5602+ Same as ''wrap-before/avoid'' ,
5603+ but only for line breaks.
5604+
5605+ <dt> <dfn>avoid-flex</dfn>
5606+ <dd>
5607+ Same as ''wrap-before/avoid'' ,
5608+ but only for flex line breaks.
5609+
5610+ <dt> <dfn>line</dfn>
5611+ <dd>
5612+ Force a line break immediately before/after the box
5613+ if the box is an <a>inline-level</a> box.
5614+
5615+ <dt> <dfn>flex</dfn>
5616+ <dd>
5617+ Force a <a>flex line</a> break immediately before/after the box
5618+ if the box is a <a>flex item</a>
5619+ in a <a>multi-line flex container</a> .
5620+ </dl>
5621+
5622+ Forced line breaks on <a>inline-level</a> boxes propagate upward
5623+ through any parent <a>inline boxes</a>
5624+ the same way forced breaks on <a>block-level</a> boxes propagate upward
5625+ through any parent <a>block boxes</a>
5626+ in the same <a>fragmentation context</a> .
5627+ [[!CSS3-BREAK]]
5628+
56295629<h3 id="line-break-details">
56305630Line Breaking Details</h3>
56315631
0 commit comments