mdn / mdn/browser-compat-data

css.properties.white-space-collapse - discard is missing in doc and compatibility-chart

Open
#24,572 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

data:css
Dominant language
JSON
Stars
5.8k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
186

Description

What information was incorrect, unhelpful, or incomplete?

the documentation and the compatibility-chart is missing the discard-value.

i believe it is because it is not yet implemented anywhere.
but it is listed in syntax as defined in the linked w3c-draft.

What did you expect to see?

i think discard schould be listed in the compatibility chart.

Did you test this? If so, how?

no tests needed.
(well, maybe it even exists in chrome? i didnt test.)

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

https://drafts.csswg.org/css-text-4/#white-space-collapsing (as linked in the mdn)

Do you have anything more you want to share?

also: i was so happy to see that white-space-collapse now is implemented, only to become very disapointed. discard is the one thing i would need. there is this one thing bugging me for over 20 years using css: empty whitespace in properly formatted (readable) html-code turning into visible text-nodes, without an acceptable generic solution to remove this visibility - only terrible or specific hacks...

MDN URL

https://developer.mozilla.org/en-US/docs/Web/CSS/white-space-collapse

MDN metadata
MDN page report details
  • Query: css.properties.white-space-collapse
  • Report started: 2024-09-29T18:03:58.245Z

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

Start with the MDN white-space-collapse page and the linked CSS Text Level 4 draft, then locate the css.properties.white-space-collapse entry in the compatibility data. Confirm how the discard value should be represented and whether browser support is known; done means the value appears correctly in the compatibility chart.

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
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.