Skip to content

Commit 8067e5c

Browse files
committed
[css-text-3] Add word-break:break-word as deprecated value
Closes w3c#2390
1 parent 9b24675 commit 8067e5c

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

css-text-3/Overview.bs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2004,7 +2004,7 @@ Line Breaking Details</h3>
20042004

20052005
<pre class="propdef">
20062006
Name: word-break
2007-
Value: normal | keep-all | break-all
2007+
Value: normal | keep-all | break-all | break-word
20082008
Initial: normal
20092009
Applies to: <a>inline boxes</a>
20102010
Inherited: yes
@@ -2246,6 +2246,13 @@ Line Breaking Details</h3>
22462246
word-break/word-break-break-all-004.html
22472247
</wpt>
22482248

2249+
<p>For compatibility with legacy content,
2250+
the 'word-break' property also supports a deprecated <dfn value for=word-break>break-word</dfn> keyword.
2251+
When specified, this has the same effect as
2252+
''word-break: normal'' and ''overflow-wrap: anywhere'',
2253+
regardless of the actual value of the 'overflow-wrap' property.
2254+
<!-- This is officially sad -->
2255+
22492256
<h3 id="line-break-property">
22502257
Line Breaking Strictness: the 'line-break' property</h3>
22512258

@@ -4683,6 +4690,7 @@ Changes</h2>
46834690

46844691
* Clarify that ''hyphens: none'' does not suppress wrapping opportunities after U+002D or U+2010.
46854692
* Fix stray text leftover when removing percentages as a possible value for word-spacing.
4693+
* Add support for ''word-break: break-word'' as a deprecated value, as needed for compatibility with this previously proprietary syntax.
46864694

46874695
<h3 class="no-num" id="changes-2018-12-06">
46884696
Changes from the <a href="https://www.w3.org/TR/2018/WD-css-text-3-20181206/">6 December 2018 Working Draft</a></h3>

css-text-3/issues-lc-2013.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -859,15 +859,17 @@ <h1>CSS Text Level 3 Disposition of Comments for 2013-10-10 LCWD</h1>
859859
<span class="oi">Closed: Invalid</span>
860860
<span>Note: Invalidated by issue 91.</span>
861861
<span>Resolved: Editor's discretion</span></pre>
862-
<pre class=' d' id='issue-94'>
862+
<pre class=' a' id='issue-94'>
863863
<span>Issue 94. <a href='#issue-94'>#</a></span>
864864
<span>Summary: Add 'word-break: break-word' to spec</span>
865865
<span>Comment: <a href='https://www.w3.org/mid/BLUPR03MB5524D8C851835C9CB3D1046AFCF0@BLUPR03MB552.namprd03.prod.outlook.com'>https://www.w3.org/mid/BLUPR03MB5524D8C851835C9CB3D1046AFCF0@BLUPR03MB552.namprd03.prod.outlook.com</a> <a href="mid:BLUPR03MB5524D8C851835C9CB3D1046AFCF0@BLUPR03MB552.namprd03.prod.outlook.com"><abbr title="Open Message">&#x2386;</abbr></a></span>
866866
<span>Comment: <a href='https://code.google.com/p/chromium/issues/detail?id=492202'>https://code.google.com/p/chromium/issues/detail?id=492202</a></span>
867867
<span>Comment: <a href='https://lists.w3.org/Archives/Public/www-style/2016Aug/0047.html'>https://lists.w3.org/Archives/Public/www-style/2016Aug/0047.html</a> <a href="https://www.w3.org/Mail/flatten/index?subject=https%3A%2F%2Flists.w3.org%2FArchives%2FPublic%2Fwww-style/2016Aug/0047.html"><abbr title="Thread">&#x2208;</abbr></a></span>
868868
<span>Comment: <a href='https://github.com/w3c/csswg-drafts/issues/2390'>https://github.com/w3c/csswg-drafts/issues/2390</a></span>
869-
<span class="d">Closed: Deferred</span>
870-
<span>Resolved: <a href='https://lists.w3.org/Archives/Public/www-style/2016Mar/0352.html'>https://lists.w3.org/Archives/Public/www-style/2016Mar/0352.html</a> <a href="https://www.w3.org/Mail/flatten/index?subject=https%3A%2F%2Flists.w3.org%2FArchives%2FPublic%2Fwww-style/2016Mar/0352.html"><abbr title="Thread">&#x2208;</abbr></a></span></pre>
869+
<span>Comment: <a href='https://lists.w3.org/Archives/Public/www-style/2016Mar/0352.html'>https://lists.w3.org/Archives/Public/www-style/2016Mar/0352.html</a> <a href="https://www.w3.org/Mail/flatten/index?subject=https%3A%2F%2Flists.w3.org%2FArchives%2FPublic%2Fwww-style/2016Mar/0352.html"><abbr title="Thread">&#x2208;</abbr></a></span>
870+
<span>Comment: <a href='https://github.com/w3c/csswg-drafts/issues/2390#issuecomment-466736750'>https://github.com/w3c/csswg-drafts/issues/2390#issuecomment-466736750</a></span>
871+
<span class="a">Closed: Accepted</span>
872+
<span>Resolved: <a href='https://github.com/w3c/csswg-drafts/issues/2390#issuecomment-467685010'>https://github.com/w3c/csswg-drafts/issues/2390#issuecomment-467685010</a></span></pre>
871873
<pre class=' a' id='issue-95'>
872874
<span>Issue 95. <a href='#issue-95'>#</a></span>
873875
<span>Summary: Legacy line-breaking rules for replaced elements</span>

css-text-3/issues-lc-2013.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -834,8 +834,10 @@ Comment: https://www.w3.org/mid/BLUPR03MB5524D8C851835C9CB3D1046AFCF0@BLUPR03MB
834834
Comment: https://code.google.com/p/chromium/issues/detail?id=492202
835835
Comment: https://lists.w3.org/Archives/Public/www-style/2016Aug/0047.html
836836
Comment: https://github.com/w3c/csswg-drafts/issues/2390
837-
Closed: Deferred
838-
Resolved: https://lists.w3.org/Archives/Public/www-style/2016Mar/0352.html
837+
Comment: https://lists.w3.org/Archives/Public/www-style/2016Mar/0352.html
838+
Comment: https://github.com/w3c/csswg-drafts/issues/2390#issuecomment-466736750
839+
Closed: Accepted
840+
Resolved: https://github.com/w3c/csswg-drafts/issues/2390#issuecomment-467685010
839841
----
840842
Issue 95.
841843
Summary: Legacy line-breaking rules for replaced elements

css-text-3/test-coverage.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ <h3 id="breaking-rules-for-letters-the-word-break-property"><a href="https://dra
247247
<li>Symbols that line-break the same way as letters of a particular category are affected the same way as those letters.
248248
<li>does not suppress <code>&lt;wbr></code>
249249
<li>line-break:anywhere wins over word-break:keep-all
250+
<li>tests for word-break:break-word
250251
</ul>
251252

252253
<p>Covered, but could have more:

0 commit comments

Comments
 (0)