Re: [csswg-drafts] [css-ruby] White space collapse between ruby annotations (#1909)

> Since whitespace should rarely show up in ruby annotations, especially at the beginning, we can probably just ignore it, or mention that it is implementation-dependent?

White space is important for annotations that aren't CJK, though. :)

The spec currently implies that white space collapses across annotations which are adjacent in the markup, and this is I think appropriate. It also implies that they don't collapse across annotations which belong to different ruby segments, and I think this is also appropriate. When annotations and bases are adjacent in the source markup, they're assumed to be part of the same "word", and are allowed to collapse together depending on 'ruby-merge'. For separate ruby segments, however, we don't know whether the author intended them as separate words or not and have to assume they're independent.

What we don't cover though is handling white space collapsing at the beginning and end of a segment. Should that collapse away? If there is a need to keep some spacing between the segments, it could maybe be handled by https://github.com/w3c/csswg-drafts/issues/3498 ...

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


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

Received on Tuesday, 2 February 2021 02:16:20 UTC