Skip to content

Commit 2d5a8e3

Browse files
committed
[css-text-4] Rename normal to wrap for consistency with flex-wrap
1 parent ff5626c commit 2d5a8e3

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

css-text-4/Overview.bs

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ Text Wrap Settings: the 'text-wrap' property</h3>
180180

181181
<pre class="propdef">
182182
Name: text-wrap
183-
Value: normal | nowrap | balance
184-
Initial: normal
183+
Value: wrap | nowrap | balance
184+
Initial: wrap
185185
Applies to: all elements
186186
Inherited: yes
187187
Percentages: n/a
@@ -193,32 +193,30 @@ Text Wrap Settings: the 'text-wrap' property</h3>
193193
Possible values:
194194

195195
<dl dfn-for=text-wrap dfn-type=value>
196-
<dt><dfn>normal</dfn>
196+
<dt><dfn>wrap</dfn>
197197
<dd>
198198
Lines may break at allowed break points,
199199
as determined by the line-breaking rules in effect.
200200
Line breaking behavior defined
201201
for the WJ, ZW, and GL line-breaking classes
202202
in [[!UAX14]] must be honored.
203203

204-
Issue: Should this be called ''text-wrap/wrap'' for consistency with 'flex-wrap'?
205-
206204
<dt><dfn>nowrap</dfn>
207205
<dd>
208206
Lines may not break; text that does not fit within the block container
209207
overflows it.
210208

211209
<dt><dfn>balance</dfn>
212210
<dd>
213-
Same as ''text-wrap/normal'' for inline-level elements.
211+
Same as ''text-wrap/wrap'' for inline-level elements.
214212
For block-level elements that
215213
contain line boxes as direct children,
216214
line breaks are chosen to balance
217215
the remaining (empty) space in each line box,
218-
if better balance than ''text-wrap/normal'' is possible.
216+
if better balance than ''text-wrap/wrap'' is possible.
219217
This must not change the number of line boxes
220218
the block would contain
221-
if 'text-wrap' were set to ''text-wrap/normal''.
219+
if 'text-wrap' were set to ''text-wrap/wrap''.
222220

223221
The remaining space to consider
224222
is that which remains after placing floats and inline content,
@@ -230,7 +228,7 @@ Text Wrap Settings: the 'text-wrap' property</h3>
230228

231229
The exact algorithm is UA-defined.
232230

233-
UAs may treat this value as ''text-wrap/normal'' if there are more than ten lines to balance.
231+
UAs may treat this value as ''text-wrap/wrap'' if there are more than ten lines to balance.
234232

235233
</dl>
236234

@@ -470,7 +468,7 @@ Shorthand for White Space and Wrapping: the 'white-space' property</h2>
470468
<tr>
471469
<th>''white-space/normal''
472470
<td>''text-space-collapse/collapse''
473-
<td>''text-wrap/normal''
471+
<td>''text-wrap/wrap''
474472
<td>''text-space-trim/none''
475473
<tr>
476474
<th>''pre''
@@ -485,12 +483,12 @@ Shorthand for White Space and Wrapping: the 'white-space' property</h2>
485483
<tr>
486484
<th>''pre-wrap''
487485
<td>''text-space-collapse/preserve''
488-
<td>''text-wrap/normal''
486+
<td>''text-wrap/wrap''
489487
<td>''text-space-trim/none''
490488
<tr>
491489
<th>''pre-line''
492490
<td>''text-space-collapse/preserve-breaks''
493-
<td>''text-wrap/normal''
491+
<td>''text-wrap/wrap''
494492
<td>''text-space-trim/none''
495493
</tbody>
496494
</table>

0 commit comments

Comments
 (0)