NEW60264
Implement white-space-collapse: preserve-spaces (CSS Text 4) [useful for SVG]
https://bugs.webkit.org/show_bug.cgi?id=60264
Summary Implement white-space-collapse: preserve-spaces (CSS Text 4) [useful for SVG]
Yves Van Goethem
Reported 2011-05-05 06:31:06 PDT
This is still in draft but it would be a really good feature for web designers to achieve more graphic consistency across different browsers.
Attachments
Shane Stephens
Comment 1 2011-05-18 20:24:15 PDT
Brent Fulgham
Comment 2 2022-07-12 14:34:49 PDT
This was renamed to 'text-space-collapse', and mostly ignored by browser vendors.
Radar WebKit Bug Importer
Comment 3 2022-07-12 14:35:41 PDT
Karl Dubost
Comment 4 2026-05-20 05:08:08 PDT
https://drafts.csswg.org/css-text-4/#white-space-collapsing > This section is still under discussion and may change in future drafts. > Renamed text-space-collapse and text-space-trim to white-space-collapse and white-space-trim. (Issue 8273) https://drafts.csswg.org/css-text-4/#:~:text=Renamed%20text%2Dspace%2Dcollapse%20and%20text%2Dspace%2Dtrim%20to%20white%2Dspace%2Dcollapse%20and%20white%2Dspace%2Dtrim.%20(Issue%208273) text-space-collapse -> white-space-collapse text-space-trim -> white-space-trim > preserve-spaces This value prevents user agents from collapsing sequences of white space, and converts tabs and segment breaks to spaces. (This value is intended to represent the behavior of xml:space="preserve" in SVG.)
Karl Dubost
Comment 5 2026-05-28 03:01:14 PDT
white-space-collapse the property is inside WebKit code, of its six CSS Text 4 values: - collapse, preserve, preserve-breaks, break-spaces — implemented - discard, preserve-spaces — explicitly marked "status": "unimplemented" in CSSProperties.json Let's scope this bug white-space-collapse: preserve-spaces https://drafts.csswg.org/css-text-4/#valdef-white-space-collapse-preserve-spaces
Note You need to log in before you can comment on or make changes to this bug.