Skip to content

Commit 1a6a12d

Browse files
frivoalfantasai
authored andcommitted
[css-text-3] Simplify the behavior of the break-spaces value
As suggested by Myles in #2003
1 parent 9a3e0f9 commit 1a6a12d

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

css-text-3/Overview.bs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,12 +1202,7 @@ Line Breaking Details</h3>
12021202
except that any sequence of <a>preserved</a> white space
12031203
that would otherwise overflow the line and <a>hang</a> as per <a href="#white-space-phase-2">Trimming and Positioning</a>
12041204
must be broken after the last white space character that would fit the line,
1205-
or after the first white space in the sequence if none would fit,
1206-
or before the first space in the sequence if none would fit and both ''overflow-wrap/break-word'' and ''break-spaces'' are specified.
1207-
1208-
<p class="note">This last clause is due to the fact that
1209-
'overflow-wrap: break-words'' allows breaks between any two characters
1210-
to avoid overflow</p>
1205+
or after the first white space in the sequence if none would fit.
12111206

12121207
<p class="note">This value does not guarantee that there will never be any overflow due to spaces.
12131208
For example, if 'overflow-wrap' is set to ''break-spaces''
@@ -1216,10 +1211,8 @@ Line Breaking Details</h3>
12161211
and that space overflows,
12171212
the rules of ''break-spaces'' do not introduce any additional line break,
12181213
and that space does overflow and <a>hang</a>.
1219-
If 'overflow-wrap' had been set to ''break-word break-spaces'',
1220-
that space would have been wrapped to the next line,
1221-
unless the line length is so short that even a single space does not fit,
1222-
in which case overflow is unavoidable.</p>
1214+
Also, if the line length is so short that even a single space does not fit,
1215+
overflow is unavoidable.</p>
12231216

12241217
</dl>
12251218

0 commit comments

Comments
 (0)