Skip to content

Commit 9d6478f

Browse files
committed
Update hanging-punctuation definition per discussions at F2F and with Murakami-san afterward
1 parent 9178903 commit 9d6478f

1 file changed

Lines changed: 21 additions & 13 deletions

File tree

css3-text/Overview.src.html

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2852,7 +2852,7 @@ <h3 id="hanging-punctuation"><span class="secno">9.2</span>
28522852
</tr>
28532853
<tr>
28542854
<th>Value:</th>
2855-
<td>none | [ start || end || end-edge ]
2855+
<td>none | [ first || last || [ allow-end | force-end ] ]
28562856
</td>
28572857
</tr>
28582858
<tr>
@@ -2861,7 +2861,7 @@ <h3 id="hanging-punctuation"><span class="secno">9.2</span>
28612861
</tr>
28622862
<tr>
28632863
<th>Applies to:</th>
2864-
<td>block-level, inline-block elements and table cells</td>
2864+
<td>all elements</td>
28652865
</tr>
28662866
<tr>
28672867
<th>Inherited:</th>
@@ -2884,23 +2884,31 @@ <h3 id="hanging-punctuation"><span class="secno">9.2</span>
28842884

28852885
<p>This property determines whether a punctuation mark, if one is present,
28862886
may be placed outside the line box at the start or at the end of a
2887-
full line of text. <span class="issue">If a justified line can fit the
2888-
punctuation will it expand to push it outside the content area? No. What if
2889-
the line ends in multiple punctuation marks? Which punctuation marks are
2890-
affected?</span>
2887+
full line of text.
28912888
Values have the following meanings:</p>
28922889

28932890
<dl>
2894-
<dt><dfn title="hanging-punctuation:start"><code>start</code></dfn></dt>
2895-
<dd>Punctuation may hang outside the start edge of the first line.</dd>
2896-
<dt><dfn title="hanging-punctuation:end"><code>end</code></dfn></dt>
2897-
<dd>Punctuation may hang outside the end edge of the last line.</dd>
2898-
<dt><dfn title="hanging-punctuation:start"><code>end-edge</code></dfn></dt>
2899-
<dd>Punctuation may hang outside the end edge of all lines.</dd>
2891+
<dt><dfn title="hanging-punctuation:first"><code>first</code></dfn></dt>
2892+
<dd>Punctuation (specifically, opening brackets and quotes) may hang
2893+
outside the start edge of the first line.</dd>
2894+
<dt><dfn title="hanging-punctuation:last"><code>last</code></dfn></dt>
2895+
<dd>Punctuation (specifcally, closing brackets and quotes) may hang
2896+
outside the end edge of the last line.</dd>
2897+
<dt><dfn title="hanging-punctuation:allow-end"><code>allow-end</code></dfn></dt>
2898+
<dd>Punctuation (specifically, stops and commas) may hang outside the
2899+
end edge of all lines if the punctuation does not otherwise fit
2900+
prior to justification.</dd>
2901+
<dt><dfn title="hanging-punctuation:force-end"><code>force-end</code></dfn></dt>
2902+
<dd>Punctuation (specifically, stops and commas) may hang outside the
2903+
end edge of all lines. If justification is enabled on this line, then
2904+
it will force the punctuation to hang.</dd>
29002905
</dl>
29012906

2907+
<p>In all cases only one punctuation character may hang outside the edge
2908+
of the line. </p>
2909+
29022910
<p class="issue">Need to work on the description.
2903-
Cover indentation as well.
2911+
Cover indentation as well. Check for Western use-cases.
29042912

29052913
<h3 id="text-overflow"><a name="text-overflow-props"></a><a name="text-overflow-mode"></a><a name="text-overflow-ellipsis"></a><a name="ellipsis-def"></a>
29062914
<span class="secno">9.3</span>

0 commit comments

Comments
 (0)