w3c / w3c/csswg-drafts

[css-text-4] It should be possible to remove spaces while using text-autospace:no-autospace

Open
#9,840 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-text-4 i18n-clreq i18n-jlreq i18n-needs-resolution
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

https://www.w3.org/TR/css-text-4/#text-autospace-property

no-autospace
No automatic space is inserted.

My reading of this paragraph is that no-autospace will prevent the browser from creating new gaps in the text, but will not remove any spaces that the text already contains.

Perhaps we need a way to also replace those space characters with no gap (the logical correlate to the way we can insert gaps by replacing space characters). That would enable the CSS author to create text that consistently has no gaps.

Would it be possible to use a rule such as text-autospace:no-autospace replace; ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue points to the CSS Text Level 4 text-autospace section; start by reviewing the definition of no-autospace and its treatment of existing space characters. Done would require a resolved specification behavior and syntax for removing those spaces, such as the proposed replace form.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.