https://drafts.csswg.org/css-pseudo-4/#first-letter-pseudo
To allow independent styling of the first letter itself and its adjacent punctuation, associated preceding punctuation is represented by the
::prefix
sub-pseudo-element of the::first-letter
pseudo-element (::first-letter::prefix
); and associated following punctuation is represented by the::postfix
sub-pseudo-element of the ::first-letter pseudo-element (::first-letter::postfix
).
The naming was resolved in #2040 (comment)
fantasai: Florian suggested ::prefix and ::postfix, which has advantage of being usable on ::marker as well
fantasai: So wanted to confirm with WG
dbaron: How understandable would these terms to non-English speakers / other English speakers
astearns: ...
dbaron: prefix is much more common than postfix
plinss: Alternative would be suffix, but postfix has better symmetry
astearns: Anyone lining up to implement this?
astearns: Lacking that, I say we go with what's in the draft
RESOLVED: Accept what's in the draft
tantek: +1 to suffix. better known term than postfix. usability trumps symmetry
However, as @valtlai mentions in #2040 (comment), using ::postfix
is inconsistent with @counter-style
, which uses prefix
and suffix
descriptors: https://drafts.csswg.org/css-counter-styles-3/#counter-style-suffix
And as @tantek mentioned in the minutes, "suffix" is a much more frequently used word. See Google Books Ngram Viewer:
Also in Spanish ("postfijo" and "posfijo" are 3-4 orders of magnitude smaller than "sufijo"):
So I propose to amend that resolution. AFAIK nobody has implemented these pseudo-elements.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3