Skip to content

[css-pseudo] Rename ::postfix to ::suffix #11949

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Loirooriol opened this issue Mar 17, 2025 · 3 comments
Open

[css-pseudo] Rename ::postfix to ::suffix #11949

Loirooriol opened this issue Mar 17, 2025 · 3 comments
Labels

Comments

@Loirooriol
Copy link
Contributor

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.

@fantasai fantasai added the Async Resolution: Proposed Candidate for auto-resolve with stated time limit label Mar 24, 2025
fantasai added a commit that referenced this issue Mar 24, 2025
* “Suffix” is the more common term.
* It also aligns with the @counter-style descriptors.
@fantasai
Copy link
Collaborator

Accepted by editor discretion given the consistency argument and lack of implementations, requesting Async resolution.

@astearns
Copy link
Member

The CSSWG will automatically accept this resolution one week from now if no objections are raised here. Anyone can add an emoji to this comment to express support. If you do not support this resolution, please add a new comment.

Proposed Resolution: Rename ::postfix to ::suffix

@astearns astearns added Async Resolution: Call For Consensus Resolution will be called after time limit expires and removed Agenda+ Async Resolution: Proposed Candidate for auto-resolve with stated time limit labels Mar 24, 2025
@astearns
Copy link
Member

astearns commented Apr 1, 2025

RESOLVED: Rename ::postfix to ::suffix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants