Skip to content
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

[css-text-4] timing of the virtual word boundary insertion and of the U+200B conversion #4261

Open
frivoal opened this issue Aug 31, 2019 · 2 comments
Assignees

Comments

@frivoal
Copy link
Collaborator

frivoal commented Aug 31, 2019

https://drafts.csswg.org/css-text-4/#word-boundary-detection and https://drafts.csswg.org/css-text-4/#word-boundary-expansion say that the virtual word boundary insertion and U+200B expansion happen "before CSS Text Module Level 3 §white-space-phase-1".

This is so that the (possibly virtual) U+200B converted into a space can participate into white space collapsing. This is good, but phase 1 also invokes Segment Break Transformation Rules, and having these be affected by word-boundary-detection and word-boundary-expansion seem undesirable.

it would mean that

aaaa​
bbb

would be rendered as

aaa​bbb

but that if word-boundary-expansion were set to ideographic-space, it would then turn into

aaa  bbb

rather than the more desirable

aaa bbb

So, both of these opperations should be changed to happen

after Segment Break Transformation Rules, but before the rest of Phase I: Collapsing and Transformation.

cc: @fantasai

@frivoal frivoal self-assigned this Aug 31, 2019
@fantasai
Copy link
Collaborator

I think this would be solved by #3481

@frivoal
Copy link
Collaborator Author

frivoal commented Sep 10, 2019

Seems true. Let's leave this open until #3481 is closed, and check then that it did solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants