@@ -3131,66 +3131,69 @@ <h3 id=hanging-punctuation><span class=secno>9.2. </span> Hanging
31313131 </ table >
31323132
31333133 < p > This property determines whether a punctuation mark, if one is present,
3134- may be placed outside the line box (or in the indent) at the start or at
3135- the end of a line of text.
3134+ < a href =" #hangs " > < i > hangs </ i > </ a > and may be placed outside the line box
3135+ (or in the indent) at the start or at the end of a line of text.
31363136
31373137 < p class =note > Note that if there is not sufficient padding on the block
3138- container, hanging punctuation can trigger overflow.
3138+ container, ‘< a href ="#hanging-punctuation0 "> < code
3139+ class =property > hanging-punctuation</ code > </ a > ’ can trigger overflow.
3140+
3141+ < p > When a punctuation mark < dfn id =hangs title =hang > hangs</ dfn > , it is not
3142+ considered when measuring the line's contents for fit, alignment, or
3143+ justification. Depending on the line's alignment, this may (or may not)
3144+ result in the mark being placed outside the line box.
31393145
31403146 < p > Values have the following meanings:
31413147
31423148 < dl >
31433149 < dt > < dfn id =none2 title ="hanging-punctuation:none "> ‘< code
31443150 class =css > none</ code > ’</ dfn >
31453151
3146- < dd > No characters can hang .
3152+ < dd > No character < a href =" #hangs " > < i > hangs </ i > </ a > .
31473153
31483154 < dt > < dfn id =first title ="hanging-punctuation:first "> ‘< code
31493155 class =css > first</ code > ’</ dfn >
31503156
31513157 < dd > An opening bracket or quote at the start of the < a
31523158 href ="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo "> first
3153- formatted line</ a > of an element hangs. This applies to all characters in
3154- the Unicode categories Ps, Pf, Pi.
3159+ formatted line</ a > of an element < a href =" # hangs" > < i > hangs </ i > </ a > . This
3160+ applies to all characters in the Unicode categories Ps, Pf, Pi.
31553161
31563162 < dt > < dfn id =last title ="hanging-punctuation:last "> ‘< code
31573163 class =css > last</ code > ’</ dfn >
31583164
31593165 < dd > A closing bracket or quote at the end of the < i > last formatted
3160- line</ i > of an element hangs. This applies to all characters in the
3161- Unicode categories Pe, Pf, Pi.
3166+ line</ i > of an element < a href =" # hangs" > < i > hangs </ i > </ a > . This applies to
3167+ all characters in the Unicode categories Pe, Pf, Pi.
31623168
31633169 < dt > < dfn id =force-end title ="hanging-punctuation:force-end "> ‘< code
31643170 class =css > force-end</ code > ’</ dfn >
31653171
3166- < dd > A stop or comma at the end of a line hangs.
3172+ < dd > A stop or comma at the end of a line < a
3173+ href ="#hangs "> < i > hangs</ i > </ a > .
31673174
31683175 < dt > < dfn id =allow-end title ="hanging-punctuation:allow-end "> ‘< code
31693176 class =css > allow-end</ code > ’</ dfn >
31703177
3171- < dd > A stop or comma at the end of a line hangs if it does not otherwise
3172- fit prior to justification.
3178+ < dd > A stop or comma at the end of a line < a href =" #hangs " > < i > hangs </ i > </ a >
3179+ if it does not otherwise fit prior to justification.
31733180 </ dl >
31743181
3175- < p > When a punctuation mark hangs, it is not considered when measuring the
3176- line's contents for fit, alignment, or justification. Depending on the
3177- line's alignment, this can push the mark outside the line box. At most one
3178- punctuation character may hang outside each edge of the line.
3179-
3180- < p class =note > A hanging punctuation mark is still enclosed inside its
3181- inline box and participates in text justification: its character advance
3182- width is just not measured when determining how much content fits on the
3183- line, how much the line's contents need to be expanded or compressed for
3184- justification, or how to position the content within the line box for text
3185- alignment.
3186-
3187- < p > Non-zero start and end borders or padding on an inline box are not
3188- allowed to hang. This can prevent a hangable punctuation mark from
3189- hanging: for example, a period at the end of an inline box with end
3190- padding cannot hang outside the end edge of a line.
3191-
3192- < p > < dfn id =stops-and-commas > Stops and commas</ dfn > allowed to hang include:
3193-
3182+ < p > Non-zero start and end borders/padding between a < a
3183+ href ="#hangs "> < i > hang</ i > </ a > eable mark and the edge of the line prevent
3184+ the mark from hanging. For example, a period at the end of an inline box
3185+ with end padding does not < a href ="#hangs "> < i > hang</ i > </ a > at the end edge
3186+ of a line. At most one punctuation character may < a
3187+ href ="#hangs "> < i > hang</ i > </ a > at each edge of the line.
3188+
3189+ < p > A hanging punctuation mark is still enclosed inside its inline box and
3190+ participates in text justification: its character advance width is just
3191+ not measured when determining how much content fits on the line, how much
3192+ the line's contents need to be expanded or compressed for justification,
3193+ or how to position the content within the line box for text alignment.
3194+
3195+ < p > < dfn id =stops-and-commas > Stops and commas</ dfn > allowed to < a
3196+ href ="#hangs "> < i > hang</ i > </ a > include:
31943197
31953198 < table class =data >
31963199 < tbody >
0 commit comments