-
Notifications
You must be signed in to change notification settings - Fork 715
[css-text] full-width spaces not covered in the collapsible/preserved space definition #4267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yes.
Ah, no. "space" generally means U+0020, not any kind of space (or also may be used in cases where the difference doesn't matter). So in a sequence of ideographic spaces with pre-wrap, they keep their normal line breaking behavior defined in UAX14's BA class: a wrapping opportunity is allowed after each (and if due to some other character, there was a wrapping opportunity before, it is not suppressed), and they don't get merged into an unbreakable sequence.
Correct. Since U+3000 isn't (white) space, it cannot be "[any adjective] (white) space".
I agree. I'll take a look and see if I can make an editorial update to disambiguate as much as possible. |
Linkify and use non ambiguous terminology for "white space", "spaces", and related terminology throughout normative prose. Closes w3c#4267
Ok, thanks for the clarification of these important terms. So now, lets see if I understand correctly the implications for some other properties and values. 1- I find a bit confusing that the definition of the different values of the white-space property uses only the term "space" or "white space", which may imply that the property doesn't affect to the "other space separator" characters. However, there are explicit mentions to these group of characters in the White Space Processing Details Section (Phase II). 2- Since the "other space separators" (eg, ideographic spaces) are not preserved white spaces how these spaces affect to the intrinsic size of the box ?
If I understood it correctly, the statement above doesn't apply to "other space separators" at all. Is this correct ? |
|
When I read that white-space: normal applies to "white spaces" and that term is linked to the definition of the "white space" character, I interpret that it doesn't apply to "other space separators" at all. It seems that all these properties apply only to "white spaces" if that's not the case, maybe use the general term "space", without a link, or even "space separator" character with a link to where it's explained the difference between "white space" and "other space separators". These are just some ideas that came quickly to mi mind, but perhaps we can think a bit more about this. |
Linkify and use non ambiguous terminology for "white space", "spaces", and related terminology throughout normative prose. Closes w3c#4267
Linkify and use non ambiguous terminology for "white space", "spaces", and related terminology throughout normative prose. Closes #4267
According to the last draft of the CSS Text specification, this is the definition of the 'white space' term:
https://drafts.csswg.org/css-text-3/#white-space
First of all, I wonder what "Except where specified otherwise" actually means; in my opinion this statement makes harder to understand other dependent terms, like the ones I'm trying to clarify in this issue later.
Then, it's stated in the spec that full-width spaces, like x3000 (ideographic space), are defined as 'other space separators':
https://drafts.csswg.org/css-text-3/#other-space-separators
So at this point, I understand that every time I read "white space" in the spec it doesn't apply to full-width spaces like U+3000 (ideographic space). Is this correct ?
So then we have the definition of "collapsible space", which is specified as follow:
https://drafts.csswg.org/css-text-3/#collapse
Since the definition above uses the term "white space", I understand that full-width spaces are excluded from that definition; hence ideographic spaces are never collapsible spaces. Is this correct ?
Then there is the statement about soft wrapping opportunities activated by the white-space property:
In the statement above, the term uses is just "space", so I assume that such term includes also the "other space separator" category; hence, there are soft wrap opportunities at the end of the sequence of ideographic spaces. Again, I wonder whether this assumption about full-width spaces is correct.
It's also interesting to consider that there may be soft wrap opportunities in the middle of a sequence of full-width spaces (considered as other space separators) if the value of the white-space is either "break-spaces" or "normal"; see your comment on issue #4180, as follows:
I guess this depends on the value of the line-break property, correct ? Is this the case of regular white spaces (eg. U+0020) so that 'white-space: normal' may allow wrap opportunities after every space ?
Finally we have the definition of 'preserved white space', which is described by the spec as follows:
https://drafts.csswg.org/css-text-3/#preserved-white-space
Again, since the statement above uses the term "white space" it implies that any character in the "other space separators" group is excluded; hence, I understand that full-width spaces, like U+3000, can't be considered preserved spaces. Is this correct ?
These definitions are very important, specially for the specification of the white-space property and its different values, which most of them use the term "white space", without mentioning the 'other space separator' term. They have some implications about how to compute the intrinsic size when there are 'other space separator' characters involved. But lets first clarify the definitions above before entering on these other issues.
The text was updated successfully, but these errors were encountered: