Re: [css-inline] Request for advice: Initial letter behaviour

On Sun, Jan 18, 2015 at 10:45 PM, Florian Rivoal <florian@rivoal.net> wrote:
>
> Mainly 3 things:
>
> 1) It sounds reasonable to me that we should be able to put ruby on drop/raised caps. However, it if never happens, there is no need to specify how it should work and to implement it. So I am looking for evidence that we should support it at all.

Isn't it needed, if never happens, to specify how drop/raised caps
disables ruby automatically?

It's easy to say rare, but hard to prove none. Since it's rare, if
existing impl behave the same way, we could spec that. Happen to know
how existing impl behave? Gecko might need to use Nightly and turn
flags on.

> 2) What is supposed to happen on jukugo with group ruby, where only the first kanji of the jukugo has initial-letter applied to it?
>
> p::first-letter {initial-letter: 2;}
> <p><ruby><rb>今日</rb><rt>きょう</rt></ruby>は天気がいいから、散歩しましょう。</p>
>
> I can think of two alternatives: either initial letter doesn't apply at all, or it extends to the whole ruby base. Probably the way we should spec it is to make ::first-letter not select the first character of a multi-character ruby base, and require an explicit selector like "p rb {initial-letter: 2;}". But before pushing for that, I wanted to check examples of actual usage.

That's a good point I didn't notice. As said above, I'm happy to take
whatever impls do if they're interoperable.

BTW, I noticed that initial letter needs to take TCY as an atomic
character. Is this covered?

> 3) If we have ruby on a drop/raised cap, what font size should it use? Same as ruby on the rest of the text? Enlarged proportionally with the initial? Something else?

I don't think this needs to be taken care of. Ruby are usually less
than 50% when base text is large even outside the initial letter, such
use is often seen in comics and in headings, but CSS Ruby Level 1
leave this up to UA[1]. I think the same applies to initial letter
case.

[1] http://dev.w3.org/csswg/css-ruby/#ruby-size

/koji

Received on Monday, 19 January 2015 11:45:53 UTC