W3C home > Mailing lists > Public > www-style@w3.org > August 2015

Re: [css-ruby] CSS ruby tests

From: Xidorn Quan <quanxunzhen@gmail.com>
Date: Mon, 24 Aug 2015 20:55:02 +1000
Message-ID: <CAMdq698R6JL12OkjtF7dkxn6f7X0puebOB+3f_bS+OT8Ngg+kQ@mail.gmail.com>
To: Richard Ishida <ishida@w3.org>
Cc: www International <www-international@w3.org>, "CJK discussion (public-i18n-cjk@w3.org)" <public-i18n-cjk@w3.org>, W3C Style <www-style@w3.org>
On Mon, Aug 24, 2015 at 8:38 PM, Richard Ishida <ishida@w3.org> wrote:
> over the weekend i developed a set of basic, user-oriented tests for css
> ruby properties and behaviours, and produced results for major browsers.
> you can find the results and links to tests at
> http://www.w3.org/International/tests/repo/results/css-ruby

Thanks for the great work.

> what follows is a high-level summary of results for tests on Firefox,
> Chrome, Opera, Safari and Edge:
> all browsers put the annotations 'over' the base by default. No browser
> allows you to move the annotation to the other side. No browser supports
> bopomofo annotations.

These tests do not match the spec. In the CSS Ruby spec,
`ruby-position` can only be applied to <rtc>, not <rt>. If you follow
that spec, and set the property for <ruby>, then Firefox should work
properly, otherwise, that would be an bug of Gecko.

> there is some support for ruby-align values in Firefox, but they only work
> on the annotations, not the base.  By default the browsers align as
> 'space-around'.

These tests do not match the spec, either. The property `ruby-align`
only affects the box it is applied. To make ruby base work, you need
to apply that property to <rb>, not <rt>. Alternatively, like
`ruby-position`, set the property on <ruby> and just let the
descendents inherit it, you should get the expected result, otherwise,
that would be an bug of Gecko.

> no browser hides an annotation if it is identical to the base text it
> annotates (eg. for 'furigana').

Hmm... This seems to be a real bug for us. Thanks for pointing that out.

- Xidorn
Received on Monday, 24 August 2015 10:56:11 UTC

This archive was generated by hypermail 2.3.1 : Monday, 24 August 2015 10:56:11 UTC