w3c / w3c/csswg-drafts

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

Open
#4,261 2 comments 0 reactions 1 assignee View on GitHub

@frivoal is already working on this.

Since Aug 31, 2019.

css-text-4
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.