hanging-punctuation
Allows punctuation marks (like quotation marks or hyphens) to be placed outside the text box alignment, making the edges of a paragraph look cleaner and straighter.
It is documented as part of the CSS Text specification.
Syntax
/* Usage Example */
blockquote {
/* Hangs opening and closing quotes outside the blockquote margin */
hanging-punctuation: first last;
}
/* Syntax */
hanging-punctuation: none;
hanging-punctuation: first;
hanging-punctuation: force-end;
hanging-punctuation: allow-end;
hanging-punctuation: last;
/* Global values */
hanging-punctuation: inherit;
hanging-punctuation: initial;
hanging-punctuation: revert;
hanging-punctuation: revert-layer;
hanging-punctuation: unset;
hanging-punctuation Browser support
Limited availability
Since
2020 14% global usage
This feature is not Baseline because it does not work in some of the most widely-used browsers.
10+