- From: Patrick Dark via GitHub <sysbot+gh@w3.org>
- Date: Fri, 23 Dec 2016 18:09:21 +0000
- To: public-css-archive@w3.org
I think we need the `collapsed` value. I can see a good use case for... ``` ruby { ruby-merge: collapse; } ruby:hover { ruby-merge: separate; } ``` ... or vice versa for easier copying and pasting of annotations. However, I foresee problems with `collapse`. Namely, it doesn't allow reordering of inter-language content into the correct order (e.g., Latin versus ideographic names). I think HTML will need to be modified to fix that problem since ruby content order isn't a styling issue. @r12a: > But what i'm wondering is whether, when pinyin for a whole word is written together for a chinese learner, and then that word runs past the right margin, does the word get split so that one part and its annotation stays on the first line, and the other moves to the second, with its bit of annotation? Or does the whole word get moved to the next line, keeping the pinyin annotation intact? You'd write markup to reflect the desired line-breaking behavior. If you want to prevent line-breaking: ```<ruby> ... ⁠<!-- word joiner --><rt/> ... </ruby>``` (Of course, the above requires browsers to fully support U+2060 word joiner, which browsers like Firefox still don't despite the relevant bug (911849) being closed as "fixed". It looks like U+200D zero width joiner is interoperably implemented, however, despite not technically having the same meaning.) My testing with English (Latin-script) base text in Firefox 50 indicates that using non-breaking spaces (` `) in such a manner works as expected and prevents line-breaking. Otherwise, ruby atoms should break across lines according to normal rules of the base text. If an annotation is collapsed, this should cause the broken annotation to separate. I think a real question is whether or not collapsing annotations that are broken across lines should collapse once per line or all act as if `separate` had been specified for the entire ruby sequence. (Imagine two annotation atoms on one line and three on the next line; there are two collapsing opportunities.) -- GitHub Notification of comment by patrickdark Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/784#issuecomment-269026411 using your GitHub account
Received on Friday, 23 December 2016 18:09:22 UTC