Re: [csswg-drafts] [css-text-3] Ogham Space Mark needs to disappear at the end of a line (#4893)

Chatted with @kojiishi , there's basically several ways we can handle this in the details. Note that from a practical perspective, it really does not matter which one we choose, since mixing OSM and spaces isn't a real use case, so we should do the most efficient thing for implementations.

- Include Ogham Space Mark among the white space characters trimmed at the end of a line ([phase 2](https://drafts.csswg.org/css-text-3/#white-space-phase-2)), but don't do anything with them when collapsing within the line ([phase 1](https://drafts.csswg.org/css-text-3/#white-space-phase-1)).
- Trim Ogham Space Mark as a separate step after trimming white space characters at the end of a line.
- Add Ogham Space Mark to the list of white space characters and collapse them just like spaces everywhere. (This is probably overkill, it makes the CSS document white space set different from CSS and HTML syntactic white space, and it likely has bad perf implications.)

The difference between 1 & 2 is what happens in the sequence `[Letter][Space][OSM][Space]`. 1 would trim everything after the Letter. 2 would leave the inner space intact.


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

Received on Tuesday, 14 April 2020 01:22:54 UTC