CSS hanging-punctuation
- Category
- CSS
- Type
- Chromium catches up
- Status
- Proposed (Chrome Proposed)
- Intent stage
- None
WPT details: https://wpt.fyi/results/css/css-text/hanging-punctuation?label=experimental&label=master&aligned
Summary
This property allows some predefined punctuation characters to be placed outside the line box, at the start or at the end of a line of text. The `first` and the `last` values are for the usages in the Latin typography. The `allow-end` is often seen in Japanese novels. The `force-end` will not be included in the initial release as it is less often used and Safari doesn't implement it.
Motivation
This typography feature is often seen in Japanese novels. Safari shipped this feature in 2016. Japanese Kindle enables it by default. It also provides a fancy feature in the Latin typography, which isn't easy to implement in the current CSS as explained in this blog: https://chriscoyier.net/2023/11/27/the-hanging-punctuation-property-in-css
Standards & signals
- Specification: https://drafts.csswg.org/css-text-4/#hanging-punctuation-property
- Firefox: No signal
- Safari: Shipped/Shipping
- Web developers: Positive
- Tracking bug: https://crbug.com/41491716
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=css%2Fcss-text%2Fhanging-punctuation
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+CSS%20hanging-punctuation
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=CSS%20hanging-punctuation
- Baseline status: https://webstatus.dev/?q=CSS%20hanging-punctuation