Skip to content

Conversation

@ChrisC
Copy link
Contributor

@ChrisC ChrisC commented Nov 21, 2025

Extracted from 5aba07a for easier review!

Feature: white-space
Reference: https://github.com/web-platform-dx/web-features/blob/main/features/white-space.yml

Note: The white-space CSS property controls how white space and line breaks inside an element are handled. It has six values: normal, nowrap, pre, pre-line, pre-wrap, and break-spaces. Also applies as a presentation attribute in SVG.

Search strategy: Searched for "white-space" property definition references in test files.

Results:
- Total matches found: 5,733 across 1,643 unique files
- Filtered: 514 files mapped

WEB_FEATURES.yml files created:
✅ [css/CSS2/text/WEB_FEATURES.yml](css/CSS2/text/WEB_FEATURES.yml) - CSS2 white-space tests (120 files)
✅ [css/css-text/white-space/WEB_FEATURES.yml](css/css-text/white-space/WEB_FEATURES.yml) - CSS Text white-space tests (391 files) - **UPDATED** existing file to add white-space feature alongside text-wrap-balance, text-wrap-nowrap, and white-space-collapse
✅ [svg/text/reftests/WEB_FEATURES.yml](svg/text/reftests/WEB_FEATURES.yml) - SVG multiline text with white-space tests (3 files)

Excluded (1,129 files):
- line-clamp tests (159 files): Primary focus on line-clamp feature
- Internationalization tests (113 files): Primary focus on i18n text rendering
- Table tests (73 files): Primary focus on table layout
- text-transform tests (69 files): Primary focus on text-transform feature
- Generated content (66 files): Primary focus on content property
- WebVTT subtitle rendering (44 files): Primary focus on subtitle display
- Other CSS2 text features (30 files): Tests for other text properties
- Already-mapped white-space features (6 files): text-wrap-balance, text-wrap-nowrap, white-space-collapse, line-edge-white-space-collapse
- SVG styling infrastructure (2 files): presentation-attributes.js and required-properties.svg test many properties
- Reference files and miscellaneous (567 files)
Noting that besides the tests mapped to other features, this also excludes segment-break-transformation tests, which are tentative tests that seem to test the interplay between white-space and line-breaks.

https://github.com/bocoup/wpt/blob/master/css/css-text/white-space/seg-break-transformation-000.tentative.html#L5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants