Content-Length: 263427 | pFad | http://github.com/frivoal/csswg-drafts/commit/9c6dcf20ebe317c09457c55e4a75d8e4d68ea6c9

6A [css-text-3] Add 'line-break: break-all' · frivoal/csswg-drafts@9c6dcf2 · GitHub
Skip to content

Commit

Permalink
[css-text-3] Add 'line-break: break-all'
Browse files Browse the repository at this point in the history
Closes w3c#1171
  • Loading branch information
frivoal committed May 22, 2017
1 parent fa0fb3c commit 9c6dcf2
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions css-text/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,9 @@ Line Breaking Details</h3>
the text consists predominantly of CJK characters with only short non-CJK excerpts,
and it is desired that the text be better distributed on each line.</dd>

Note: This value does not affect whether there are <a>soft wrap opportunities</a> around punctuation characters.
To allow breaks anywhere, see ''line-break: break-all''.

<dt><dfn>keep-all</dfn></dt>
<dd>Breaking is forbidden within “words”:
implicit <a>soft wrap opportunities</a> between <a>typographic letter units</a> are suppressed,
Expand Down Expand Up @@ -925,16 +928,16 @@ Line Breaking Details</h3>
</div>

<p>When shaping scripts such as Arabic
are allowed to break within words due to ''break-all'',
are allowed to break within words due to ''word-break/break-all'',
the characters must still be shaped
as if the word were <a href="#word-break-shaping">not broken</a>.

<h3 id="line-break-property">
Breaking Rules for Punctuation: the 'line-break' property</h3>
Line Breaking Rules: the 'line-break' property</h3>

<pre class="propdef">
Name: line-break
Value: auto | loose | normal | strict
Value: auto | loose | normal | strict | break-all
Initial: auto
Inherited: yes
Canonical order: n/a
Expand All @@ -958,6 +961,14 @@ Line Breaking Details</h3>
<dt><dfn>strict</dfn></dt>
<dd>Breaks text using the most stringent set of line-breaking
rules.</dd>
<dt><dfn>break-all</dfn></dt>
<dd>There is a <a>soft wrap opportunity</a> around every <a>typographic character unit</a>,
including around any punctuation character or preserved spaces,
or in the middle of words.
The different wrapping opportunities must not be prioritized.
Hyphenation is not applied.

Note: This value triggers the line breaking rules typically seen in terminals.</dd>
</dl>

<p class="feedback issue">
Expand All @@ -966,9 +977,9 @@ Line Breaking Details</h3>
However, the resulting behavior could use some review and feedback to make sure they are correct,
particularly when “word basis” breaking is used (''word-break: keep-all'') in Korean.

<p>CSS distinguishes between three levels of strictness in the rules for
<p>CSS distinguishes between four levels of strictness in the rules for
text wrapping.
The precise set of rules in effect for each level is up to the UA
The precise set of rules in effect for each of ''line-break/loose'', ''line-break/normal'', and ''line-break/strict'' is up to the UA
and should follow language conventions.
However, this specification does require that:</p>

Expand Down Expand Up @@ -1205,6 +1216,7 @@ Shaping Across Intra-word Breaks</h3>
at unforced <a>soft wrap opportunities</a> within words
(such as when breaking due to
''word-break: break-all'',
''line-break: break-all'',
''overflow-wrap: break-word'',
or when <a>hyphenating</a>)
the characters must still be shaped
Expand Down Expand Up @@ -2373,6 +2385,7 @@ Changes</h2>
<li>Qualified that only lowercase letters are titlecased for ''text-transform: capitalize''; uppercase letters remain unaffected.
<li>For ''word-break: break-all'', switched to UAX14 notion of “letters”,
since that handles symbols better.
<li>Added ''line-break: break-all''.
</ul>

<h3 class="no-num" id="changes-2013">
Expand Down

0 comments on commit 9c6dcf2

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/frivoal/csswg-drafts/commit/9c6dcf20ebe317c09457c55e4a75d8e4d68ea6c9

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy