Skip to content

Commit 4b5444f

Browse files
committed
[css-text-4] Reorder white-space-trim values, add line-breaking note
1 parent 54c3e0c commit 4b5444f

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

css-text-4/Overview.bs

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2574,7 +2574,7 @@ White Space Trimming: the 'white-space-trim' property</h3>
25742574

25752575
<pre class="propdef">
25762576
Name: white-space-trim
2577-
Value: none | discard-inner || discard-before || discard-after
2577+
Value: none | discard-before || discard-after || discard-inner
25782578
Initial: none
25792579
Applies to: [=inline boxes=] and [=block containers=]
25802580
Inherited: no
@@ -2588,6 +2588,16 @@ White Space Trimming: the 'white-space-trim' property</h3>
25882588
Values have the following meanings:
25892589

25902590
<dl dfn-for=white-space-trim dfn-type=value>
2591+
<dt><dfn>discard-before</dfn>
2592+
<dd>
2593+
This value directs the UA to collapse all collapsible whitespace
2594+
immediately before the start of the element.
2595+
2596+
<dt><dfn>discard-after</dfn>
2597+
<dd>
2598+
This value directs the UA to collapse all collapsible whitespace
2599+
immediately after the end of the element.
2600+
25912601
<dt><dfn>discard-inner</dfn>
25922602
<dd>
25932603
For block containers this value directs UAs to discard
@@ -2597,17 +2607,11 @@ White Space Trimming: the 'white-space-trim' property</h3>
25972607
starting with the first <a>segment break</a> after the last non-white-space character in the element.
25982608
For other elements this value directs UAs to discard
25992609
all whitespace at the beginning and end of the element.
2610+
</dl>
26002611

2601-
<dt><dfn>discard-before</dfn>
2602-
<dd>
2603-
This value directs the UA to collapse all collapsible whitespace
2604-
immediately before the start of the element.
26052612

2606-
<dt><dfn>discard-after</dfn>
2607-
<dd>
2608-
This value directs the UA to collapse all collapsible whitespace
2609-
immediately after the end of the element.
2610-
</dl>
2613+
Note: Discarding [=document white space=] using 'white-space-trim'
2614+
can change where [=line breaking opportunities=] occur in the text.
26112615

26122616
<div class="example">
26132617
<p>The following style rules render DT elements as a comma-separated list:

0 commit comments

Comments
 (0)