Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[css-text-3] When is allowed to break before the first preserved white-space after a word ? #3701
It may be other cases, but I'd like some clarification regarding how to deal with preserved white-spaces character generated by the white-space: break-spaces feature.
According to the spec,it must break AFTER any white-space:
However, depending on the case and in combination with other CSS properties, there may be soft-breaking opportunities BEFORE the first space after a word. The following table describes what I think is the expected behavior when using white-space: break-spaces in combination with other properties:
Is the content of this table correct, according to the last draft of the spec ?
Assuming it's correct, lets consider the following example:
The table bellow shows Chrome's current behavior when loading the example above with the different combination of the line-breaking properties:
Are all these cases correctly rendered ?
Yes, that matches my own understanding.
All cases assume
@fantasai, do you agree?