Skip to content

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

Closed

Description

@Loirooriol

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.

Activity

  1. fantasai commented on Mar 24, 2025

    @fantasai
    Collaborator

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

  2. astearns commented on Mar 24, 2025

    @astearns
    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

  3. astearns commented on Apr 1, 2025

    @astearns
    Member

    RESOLVED: Rename ::postfix to ::suffix

  4. SebastianZ commented on Sep 13, 2025

    @SebastianZ
    Contributor

    The rename happened in 4bfbc1e half a year ago and I just fixed a previously missed place. So I think it's fine to close this now.

    Sebastian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions