Re: [csswg-drafts] [css-text] Reconsider the initial value of the `text-autospace` property (#12386)

> The current Blink implementation can avoid most of the performance hits for Latin scripts, but all other scripts are impacted by 1-5% of the layout time.

https://github.com/mozilla/standards-positions/issues/903#issuecomment-4322313540

> We should make use of the fact that the first codepoint of "ideographs" is U+2E80 when we implement `text-autospace`. Code points of the most major scripts are less than it. We should skip the Unicode property checks if the code point is less than it.
> 
> ```java
> if (previousAsciiOrLatin1 && nextAsciiOrLatin1) return NO_INSERT_SPACE;
> if (previousCodePoint < 0x2E80 && nextCodePoint < 0x2E80) return NO_INSERT_SPACE;
> ```

-- 
GitHub Notification of comment by tats-u
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12386#issuecomment-4326126025 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 27 April 2026 10:18:47 UTC