|
83 | 83 |
|
84 | 84 | <h1>CSS Text Level 3</h1> |
85 | 85 |
|
86 | | - <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 7 March 2011</h2> |
| 86 | + <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 9 March 2011</h2> |
87 | 87 |
|
88 | 88 | <dl> |
89 | 89 | <dt>This version: |
90 | 90 |
|
91 | 91 | <dd><a href="http://dev.w3.org/csswg/css3-text/Overview.html">$Date: |
92 | | - 2011/03/03 09:12:56 $ (CVS $Revision$)</a> <!-- |
93 | | - <dd><a href="http://www.w3.org/TR/2011/WD-css3-text-20110307/">http://www.w3.org/TR/2011/WD-css3-text-20110307/</a></dd> |
| 92 | + 2011/03/07 17:16:19 $ (CVS $Revision$)</a> <!-- |
| 93 | + <dd><a href="http://www.w3.org/TR/2011/WD-css3-text-20110309/">http://www.w3.org/TR/2011/WD-css3-text-20110309/</a></dd> |
94 | 94 | --> |
95 | 95 |
|
96 | 96 |
|
@@ -788,7 +788,8 @@ <h3 id=white-space-collapsing><span class=secno>4.1. </span> White Space |
788 | 788 | <tr> |
789 | 789 | <th>Value: |
790 | 790 |
|
791 | | - <td>collapse | discard | [ [preserve | preserve-breaks] && trim-inner ] |
| 791 | + <td>collapse | discard | [ [preserve | preserve-breaks] && [ trim-inner |
| 792 | + || consume-before || consume-after ] |
792 | 793 |
|
793 | 794 | <tr> |
794 | 795 | <th>Initial: |
@@ -866,6 +867,18 @@ <h3 id=white-space-collapsing><span class=secno>4.1. </span> White Space |
866 | 867 | non-white-space character in the block as well as to discard all white |
867 | 868 | space at the end of a block starting with the first line feed after the |
868 | 869 | last non-white-space character in the block. |
| 870 | + |
| 871 | + <dt><dfn id=consume-before |
| 872 | + title="white-space-collapsing:consume-before"><code>consume-before</code></dfn> |
| 873 | + |
| 874 | + <dd>This value directs the UA to collapse all collapsible whitespace |
| 875 | + immediately before the start of the element. |
| 876 | + |
| 877 | + <dt><dfn id=consume-after |
| 878 | + title="white-space-collapsing:consume-after"><code>consume-after</code></dfn> |
| 879 | + |
| 880 | + <dd>This value directs the UA to collapse all collapsible whitespace |
| 881 | + immediately after the end of the element. |
869 | 882 | </dl> |
870 | 883 |
|
871 | 884 | <h3 id=tab-size><span class=secno>4.2. </span> Tab Character Size: the |
@@ -922,9 +935,9 @@ <h3 id=tab-size><span class=secno>4.2. </span> Tab Character Size: the |
922 | 935 | <h3 id=white-space-rules><span class=secno>4.3. </span> The White Space |
923 | 936 | Processing Rules</h3> |
924 | 937 |
|
925 | | - <p>For each inline (including anonymous inlines), white space characters |
926 | | - are handled as follows, ignoring bidi formatting characters as if they |
927 | | - were not there: |
| 938 | + <p>For each inline (including anonymous inlines) within an inline |
| 939 | + formatting context, white space characters are handled as follows, |
| 940 | + ignoring bidi formatting characters as if they were not there: |
928 | 941 |
|
929 | 942 | <ul> |
930 | 943 | <li id=collapse> |
@@ -953,6 +966,12 @@ <h3 id=white-space-rules><span class=secno>4.3. </span> The White Space |
953 | 966 | (U+0020)—even a space before the inline—is removed. |
954 | 967 | However, if removing this space would eliminate a line breaking |
955 | 968 | opportunity in the text, that opportunity is still considered to exist. |
| 969 | + |
| 970 | + <li>A collapsible space before the start of an element with ‘<code |
| 971 | + class=css>consume-before</code>’ is removed. |
| 972 | + |
| 973 | + <li>A collapsible space after the end of an element with ‘<code |
| 974 | + class=css>consume-after</code>’ is removed. |
956 | 975 | </ol> |
957 | 976 |
|
958 | 977 | <li> |
@@ -6240,7 +6259,8 @@ <h2 class=no-num id=appendix-b-property-index> Appendix B: Property index</h2> |
6240 | 6259 | <td><a class=property |
6241 | 6260 | href="#white-space-collapsing0">white-space-collapsing</a> |
6242 | 6261 |
|
6243 | | - <td>collapse | discard | [ [preserve | preserve-breaks] && trim-inner ] |
| 6262 | + <td>collapse | discard | [ [preserve | preserve-breaks] && [ trim-inner |
| 6263 | + || consume-before || consume-after ] |
6244 | 6264 |
|
6245 | 6265 | <td>collapse |
6246 | 6266 |
|
@@ -6743,6 +6763,12 @@ <h2 class=no-num id=index>Index</h2> |
6743 | 6763 | <li>white-space-collapsing:collapse, <a href="#collapse0" |
6744 | 6764 | title="white-space-collapsing:collapse"><strong>4.1.</strong></a> |
6745 | 6765 |
|
| 6766 | + <li>white-space-collapsing:consume-after, <a href="#consume-after" |
| 6767 | + title="white-space-collapsing:consume-after"><strong>4.1.</strong></a> |
| 6768 | + |
| 6769 | + <li>white-space-collapsing:consume-before, <a href="#consume-before" |
| 6770 | + title="white-space-collapsing:consume-before"><strong>4.1.</strong></a> |
| 6771 | + |
6746 | 6772 | <li>white-space-collapsing:discard, <a href="#discard" |
6747 | 6773 | title="white-space-collapsing:discard"><strong>4.1.</strong></a> |
6748 | 6774 |
|
|
0 commit comments