Skip to content

Commit fbffce4

Browse files
committed
[css-text-3] Tighten up applicability / wording of . Fixes w3c#2545
1 parent bfb538a commit fbffce4

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

css-text-4/Overview.bs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Text Wrap Settings: the 'text-wrap' property</h3>
174174
Name: text-wrap
175175
Value: wrap | nowrap | balance | multi-line
176176
Initial: wrap
177-
Applies to: all elements
177+
Applies to: <a>inline boxes</a> and <a>block containers</a>
178178
Inherited: yes
179179
Percentages: n/a
180180
Computed value: as specified
@@ -186,8 +186,10 @@ Text Wrap Settings: the 'text-wrap' property</h3>
186186
<dl dfn-for=text-wrap dfn-type=value>
187187
<dt><dfn>wrap</dfn>
188188
<dd>
189-
Lines may break at allowed break points,
190-
as determined by the line-breaking rules in effect.
189+
Specifies that inline-level content may break across lines
190+
at allowed <a>soft wrap opportunities</a>,
191+
as determined by the line-breaking rules in effect
192+
in order to minimize <a>inline-axis</a> overflow.
191193
Line breaking behavior defined
192194
for the WJ, ZW, and GL line-breaking classes
193195
in [[!UAX14]] must be honored.
@@ -198,14 +200,14 @@ Text Wrap Settings: the 'text-wrap' property</h3>
198200

199201
<dt><dfn>nowrap</dfn>
200202
<dd>
201-
Lines may not break; text that does not fit within the block container
202-
overflows it.
203+
Specifies that inline-level content must not break across lines;
204+
content that does not fit within the block container overflows it.
203205

204206
<dt><dfn>balance</dfn>
205207
<dd>
206-
Same as ''text-wrap/wrap'' for inline-level elements.
207-
For block-level elements that
208-
contain line boxes as direct children,
208+
Same as ''text-wrap/wrap'' for <a>inline boxes</a>.
209+
For <a>block containers</a> that
210+
establish an <a>inline formatting context</a>,
209211
line breaks are chosen to balance
210212
the remaining (empty) space in each line box,
211213
if better balance than ''text-wrap/wrap'' is possible.
@@ -227,7 +229,7 @@ Text Wrap Settings: the 'text-wrap' property</h3>
227229

228230
<dt><dfn>multi-line</dfn>
229231
<dd>
230-
Same as ''text-wrap/wrap'' for inline-level elements.
232+
Same as ''text-wrap/wrap'' for <a>inline boxes</a>.
231233
Same as ''text-wrap/wrap'' for block-level elements,
232234
except as below.
233235

0 commit comments

Comments
 (0)