The `hanging-punctuation property` in CSS
CSS’s new `hanging-punctuation` property, which lets punctuation marks extend outside a text block’s edge, is dividing typographers, designers, and developers. Advocates see it as a long-overdue microtypography tool that can make justified or prose-style text blocks look more visually balanced, while critics argue it adds cognitive load, breaks layout expectations, and risks issues like unwanted horizontal scrolling. Many also note that browser support is currently limited (mainly Safari), raising questions about whether such fine-grained typography should be controlled by site authors or left to readers and user agents.
Aesthetics of hanging punctuation
- Opinions split on whether hanging quotes look better.
- Some like slight or partial hanging: it visually balances margins, especially in block quotes and justified text, and mimics high-end print or East Asian typesetting.
- Others find any overhang sloppy, “bumpy,” or distracting, particularly when paragraphs with and without opening quotes then look structurally different.
- Several argue that full hanging of opening quotes is overdone; subtle adjustment is preferred.
- A few suggest simply omitting quotation marks for block quotes, since the block itself already signals quoted text.
Typography theory and readability
- Discussion connects hanging punctuation to broader microtypography: overshoots (letters extending past baseline/cap line), oldstyle numerals, and space after periods.
- One camp defends overshoots as necessary optical corrections; another calls them outdated and visually chaotic, asking for examples where overshoots truly help.
- On double spaces after periods, a cited study suggests only readers conditioned to double spaces gain a small speed benefit; others see it as wasted space and a historical convention.
- Dyslexic readers report mixed effects: some find hanging punctuation harder (a “wall of text”), others find the hanging quote an anchor that helps.
Implementation, browser support, and CSS complexity
- As of the discussion, support is essentially Safari-only and partial. Several note demos not working or hiding quotes in mobile Safari, and layout issues like unintended scrollbars or misaligned lists.
hanging-punctuationcurrently only affects the start of blocks; more complex inline use still needs hacks (negative margins, custom elements,text-shadowtricks).- There’s debate over whether such aesthetic features belong in HTML/CSS markup at all, versus being handled by higher-level “prose mode” settings or left to user agents/e-readers.
- Some want a single “this is prose” signal that enables hyphenation, better line breaking, and gentle hanging punctuation automatically. Others stress backward compatibility and the risk of breaking existing layouts.
Broader role of CSS and design vs. user control
- Some see fine-grained typography in CSS as essential, especially as CSS is used for print-like PDFs, EPUBs, and app UIs.
- Others view properties like
hanging-punctuationas niche “namespace pollution” in an already sprawling, inconsistent CSS ecosystem. - Tension appears between designer intent and user control: should hanging punctuation be an author’s choice, or a reader preference like font and justification?