Skip to content

[css-text] 'white-space: break-spaces' applies to other space separators as well #4522

@javifernandez

Description

@javifernandez

I think the current text of the white-space property still has some inaccuracies or confusing terminology about the kind of spaces it applies to; maybe not regarding collapsing behavior, since it only applies to white space, but definitively when it comes to specify the additional breaking opportunities.

https://drafts.csswg.org/css-text-3/#valdef-white-space-break-spaces

A line breaking opportunity exists after every preserved white space character, including between white space characters.

This statement only mentions white space characters, but in the Phase II of the White Space Processing section, it is specified that 'white-space: break-spaces' affects how other space separators should be handled as well

https://drafts.csswg.org/css-text-3/#white-space-phase-2

If white-space is set to break-spaces, hanging or collapsing the advance width of the spaces, tabs, or other space separators at the end of the line is not allowed; those that overflow must wrap to the next line.

I think we should clarify in the 'break-spaces' value definition that it applies to sequence of other space separators as well.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions