W3C home > Mailing lists > Public > www-style@w3.org > July 2014

Re: [css-ruby] Nested Ruby

From: fantasai <fantasai.lists@inkedblade.net>
Date: Fri, 11 Jul 2014 14:09:05 -0700
Message-ID: <53C05271.5030801@inkedblade.net>
To: Boris Zbarsky <bzbarsky@MIT.EDU>, www-style@w3.org
On 07/09/2014 09:07 AM, Boris Zbarsky wrote:
> On 7/9/14, 11:38 AM, fantasai wrote:
>> I think they're all handled, actually. If something's unclear or
>> seems weird, let me know?
>
> Hmm, you're right.  Looks like this addressed most of the issues I had.

Cool.

> Remaining issues:
>
> 1)  http://dev.w3.org/csswg/css-ruby/#box-fixup
>     talks about white space in general, but
>     http://dev.w3.org/csswg/css-ruby/#white-space
>     has overlapping normative requirements that specifically
>     call out collapsible white space.

Oh, hey. I was going to clean that up, but looks like I forgot...
Should be tidied up now. I'll need to do a second editorial pass,
but should be workable now.

> 2)  It's not clear that in step 4 (<http://dev.w3.org/csswg/css-ruby/#anon-gen-bare-inlines>) the anonymous boxes around
> intra-ruby white space are not actually created, though later steps afaict depend on them not actually being created, right?
> Otherwise this markup:
>
>    <div style="display:ruby">
>      <div style="display:ruby-text"></div>
>      <div style="display:ruby-text"></div>
>    </div>
>
> would create a ruby base between the two ruby annotations,
> which would then be flagged as inter-annotation white space,
> but still be a ruby base for purposes of step 8
> (<http://dev.w3.org/csswg/css-ruby/#anon-gen-anon-containers>)
> which is not what we want in step 8.  I guess step 6 is what
> really creates wrappers for this situation, not step 4, right?

Yes, step 6 re-interprets the box as a ruby annotation. I'm not
sure how to make that more clear.

> Does it really create a ruby annotation box, though, or just
> treat the whitespace as one for purposes of anonymous wrapping?
> I assume it's the latter, since for pairing purposes we want
> to ignore inter-annotation white space.

It really creates a ruby annotation box for the purposes of layout.

However, pairing is handled specially: it can pair only with an
inter-base white space box. (Is that not clear somehow?)

> 3)  I still think the table in step 5 (<http://dev.w3.org/csswg/css-ruby/#anon-gen-discard-space>) can be boiled down to two
> rules:
>
>    I.  Next box is ruby annotation container.
>    II. Next box is ruby annotation and previous box is not ruby
>        annotation.
>
> whether that's clearer, I'm not sure.

Done!

~fantasai
Received on Friday, 11 July 2014 21:09:41 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:23 UTC