Skip to content

Commit 0abaaed

Browse files
committed
More hanging-punctuation clarification
1 parent 5117286 commit 0abaaed

2 files changed

Lines changed: 44 additions & 29 deletions

File tree

css3-text/Overview.html

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@
8383

8484
<h1>CSS Text Level 3</h1>
8585

86-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 31 March 2011</h2>
86+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 2 April 2011</h2>
8787

8888
<dl>
8989
<dt>This version:
9090

9191
<dd><a href="http://dev.w3.org/csswg/css3-text/Overview.html">$Date:
92-
2011/03/30 07:53:26 $ (CVS $Revision$)</a> <!--
93-
<dd><a href="http://www.w3.org/TR/2011/WD-css3-text-20110331/">http://www.w3.org/TR/2011/WD-css3-text-20110331/</a></dd>
92+
2011/03/31 19:23:21 $ (CVS $Revision$)</a> <!--
93+
<dd><a href="http://www.w3.org/TR/2011/WD-css3-text-20110402/">http://www.w3.org/TR/2011/WD-css3-text-20110402/</a></dd>
9494
-->
9595

9696

@@ -2901,6 +2901,10 @@ <h3 id=text-justify><span class=secno>8.3. </span> Justification Method:
29012901

29022902
<dd>Justification primarily stretches <a href="#cursive-scripts">cursive
29032903
scripts</a> through the use of kashida or other calligraphic elongation.
2904+
This value is <em>optional</em> for conformance to CSS3 Text. (UAs that
2905+
do not support cursive elongation must <a
2906+
href="http://www.w3.org/TR/css-beijing/#partial">treat the value as
2907+
invalid</a>.)
29042908
</dl>
29052909

29062910
<p>When justifying text, the user agent takes the remaining space between
@@ -4273,39 +4277,45 @@ <h3 id=hanging-punctuation><span class=secno>10.2. </span> Hanging
42734277

42744278
<p>This property determines whether a punctuation mark, if one is present,
42754279
may be placed outside the line box (or in the indent) at the start or at
4276-
the end of a line of text. Values have the following meanings:
4280+
the end of a line of text.
4281+
4282+
<p class=note>Note that if there is not sufficient padding on the block
4283+
container, hanging punctuation can trigger overflow.
4284+
4285+
<p>Values have the following meanings:
42774286

42784287
<dl>
42794288
<dt><dfn id=first
42804289
title="hanging-punctuation:first"><code>first</code></dfn>
42814290

42824291
<dd>An opening bracket or quote at the start of the <a
42834292
href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo">first
4284-
formatted line</a> of an element hangs outside the line. This applies to
4285-
all characters in the Unicode categories Ps, Pf, Pi.
4293+
formatted line</a> of an element hangs. This applies to all characters in
4294+
the Unicode categories Ps, Pf, Pi.
42864295

42874296
<dt><dfn id=force-end0
42884297
title="hanging-punctuation:force-end"><code>force-end</code></dfn>
42894298

4290-
<dd>A stop or comma at the end of a line hangs outside the line.
4299+
<dd>A stop or comma at the end of a line hangs.
42914300

42924301
<dt><dfn id=allow-end
42934302
title="hanging-punctuation:allow-end"><code>allow-end</code></dfn>
42944303

4295-
<dd>A stop or comma at the end of a line hangs outside the line if it does
4296-
not otherwise fit prior to justification.
4304+
<dd>A stop or comma at the end of a line hangs if it does not otherwise
4305+
fit prior to justification.
42974306
</dl>
42984307

42994308
<p>When a punctuation mark hangs, it is not considered when measuring the
4300-
line's contents for indentation, alignment, or justification. (The
4301-
punctuation mark is part of the justified contents; it is just not
4302-
measured when determining how much the contents need to be expanded or
4303-
compressed.) Depending on the line's alignment, this can push the mark
4304-
outside the line box. At most one punctuation character may hang outside
4305-
each edge of the line.
4306-
4307-
<p class=note>Note that if there is not sufficient padding on the block
4308-
container, hanging punctuation can trigger overflow.
4309+
line's contents for fit, alignment, or justification. Depending on the
4310+
line's alignment, this can push the mark outside the line box. At most one
4311+
punctuation character may hang outside each edge of the line.
4312+
4313+
<p class=note>A hanging punctuation mark is still enclosed inside its
4314+
inline box and participates in text justification: its character advance
4315+
width is just not measured when determining how much content fits on the
4316+
line, how much the line's contents need to be expanded or compressed for
4317+
justification, or how to position the content within the line box for text
4318+
alignment.
43094319

43104320
<p>Non-zero start and end borders or padding on an inline box are not
43114321
allowed to hang. This can sometimes prevent a hangable punctuation mark

css3-text/Overview.src.html

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3170,32 +3170,37 @@ <h3 id="hanging-punctuation">
31703170
<p>This property determines whether a punctuation mark, if one is present,
31713171
may be placed outside the line box (or in the indent) at the start
31723172
or at the end of a line of text.
3173-
Values have the following meanings:</p>
3173+
3174+
<p class="note">Note that if there is not sufficient padding on the
3175+
block container, hanging punctuation can trigger overflow.</p>
3176+
3177+
<p>Values have the following meanings:</p>
31743178

31753179
<dl>
31763180
<dt><dfn title="hanging-punctuation:first"><code>first</code></dfn></dt>
31773181
<dd>An opening bracket or quote at the start of the
31783182
<a href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo">first
3179-
formatted line</a> of an element hangs outside the line.
3183+
formatted line</a> of an element hangs.
31803184
This applies to all characters in the Unicode categories Ps, Pf, Pi.</dd>
31813185
<dt><dfn title="hanging-punctuation:force-end"><code>force-end</code></dfn></dt>
3182-
<dd>A stop or comma at the end of a line hangs outside the line.</dd>
3186+
<dd>A stop or comma at the end of a line hangs.</dd>
31833187
<dt><dfn title="hanging-punctuation:allow-end"><code>allow-end</code></dfn></dt>
3184-
<dd>A stop or comma at the end of a line hangs outside the line if it
3188+
<dd>A stop or comma at the end of a line hangs if it
31853189
does not otherwise fit prior to justification.</dd>
31863190
</dl>
31873191

3188-
<p>When a punctuation mark hangs, it is not considered when measuring the
3189-
line's contents for indentation, alignment, or justification. (The
3190-
punctuation mark is part of the justified contents; it is just not
3191-
measured when determining how much the contents need to be expanded or
3192-
compressed.)
3192+
<p>When a punctuation mark hangs, it is not considered when measuring
3193+
the line's contents for fit, alignment, or justification.
31933194
Depending on the line's alignment, this can push the mark outside the
31943195
line box. At most one punctuation character may hang outside each edge
31953196
of the line.
31963197

3197-
<p class="note">Note that if there is not sufficient padding on the
3198-
block container, hanging punctuation can trigger overflow.</p>
3198+
<p class="note">A hanging punctuation mark is still enclosed inside
3199+
its inline box and participates in text justification: its character
3200+
advance width is just not measured when determining how much content
3201+
fits on the line, how much the line's contents need to be expanded
3202+
or compressed for justification, or how to position the content
3203+
within the line box for text alignment.
31993204

32003205
<p>Non-zero start and end borders or padding on an inline box are not
32013206
allowed to hang. This can sometimes prevent a hangable punctuation mark

0 commit comments

Comments
 (0)