pseudo-element

::suffix — CSS reference

Draft sub-pseudo-element for following punctuation associated with the first letter. It is not an independently generated ::before/::after box. The earlier ::postfix spelling was renamed ::suffix in the editor draft. Explicit span markup can style known punctuation without relying on automatic first-letter extraction; this is not a general algorithmic replacement.

Formal Syntax & Structure

css syntaxcss
p::first-letter::suffix

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>::suffix</title><style>body{margin:0;background:white}#a{box-sizing:border-box}#a span{color:red}p::first-letter::suffix{color:red}</style><body><p id="a">A<span>”</span> new day.</p></body></html>
CSS Reference