Skip to content

Add text-spacing-trim to the clreq document #764

Open

Description

@xfq

Should we add text-spacing-trim to the CSS of the clreq document? If so, which value should we use? Maybe trim-start?

Activity

  1. xfq commented on Jun 4, 2026

    @xfq
    MemberAuthor

    Once we have reached a decision, I will also add it to W3C's Chinese pages/articles, like https://www.w3.org/International/i18n-drafts/nav/about.zh-hans.html

  2. xfq commented on Jul 21, 2026

    @xfq
    MemberAuthor

    The result of today’s meeting: try trim-both for a few months, and if there is no negative feedback, adopt it officially.

  3. r12a commented on Jul 22, 2026

    @r12a
    Contributor

    But trim-both doesn't appear to be supported by any browser, so it's not clear to me how you'd get feedback. See the side panel at https://www.w3.org/International/articles/styling/inline-space.en.html#punc_initial_nospace

  4. xfq commented on Jul 22, 2026

    @xfq
    MemberAuthor

    We plan to use CSS code like this:

    .selector {
      /* ① For implementations that support `trim-start`, apply this value first. */
      text-spacing-trim: trim-start;
      
      /* ② Browsers that support trim-both will overwrite the previous line, and browsers that don't support it will ignore this line. */
      text-spacing-trim: trim-both;
    }
  5. r12a commented on Jul 23, 2026

    @r12a
    Contributor

    Ok, but any feedback would still only be related to trim-start (only supported on Blink browsers, and dependent on the font used), rather than trim-both. You won't be able to get comparative feedback on whether trim-both is better than trim-start.

  6. xfq commented on Jul 23, 2026

    @xfq
    MemberAuthor

    Yes, we're aware of that. Firstly, the behavior of these two values ​​is very similar. Secondly, once trim-both is also implemented by browser(s), we can get feedback. And there shouldn't be any disadvantage with it (if there is, we can easily change it back).

  7. xfq commented on Sep 15, 2026

    @xfq
    MemberAuthor

    After today's meeting discussion, the TF decided to add the above CSS for now. It should work better than not adding anything.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions