w3c / w3c/editing

Canonicalize Whitespace algorithm does not respect the `white-space-collapse` CSS property

Open
#486 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
202
Forks
43
PR merge metrics
No merged PRs in 30d

Description

Steps 3.3, 7.3 and 8.3 of the canonicalize whitespace algorithm have a condition of parent's resolved value for "white-space" is neither "pre" nor "pre-wrap". As "white-space" has been converted into a shorthand property this should instead use the longhand white-space-collapse property.

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

Read steps 3.3, 7.3, and 8.3 of the canonicalize whitespace algorithm, then compare their condition with the CSS Text Level 4 definition of white-space-collapse. Done means the algorithm consistently refers to the longhand property rather than the white-space shorthand in all three steps.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.