Re: [css-ruby] Conflict with HTML5 spec

On Mon, Feb 23, 2015 at 8:42 AM, Xidorn Quan <quanxunzhen@gmail.com> wrote:

> I just notice a conflict between the CSS Ruby spec and the sections
> related to ruby in the HTML5 spec.
>
> The HTML5 spec of both WHATWG and W3C version say that
> improperly-contained inner ruby elements should represent their children
> (Including that <rp> should not be hidden). [1][2]
>
> However, the CSS Ruby specifies the display value unconditionally to those
> tags in the default stylesheet [3], and requires generating proper parents
> for those elements [4].
>
> I guess the easiest way to fix this conflict is changing the default
> stylesheet to meet the HTML5 spec.
>

But one problem I'm concerned about changing the default stylesheet is
that, if we change it to something like "ruby > rb { display: ruby-base; }"
then the author would be confused when he wants to override the rule.
Simple rule like "rb { display: inline; }" won't have any effect.

- Xidorn

Received on Monday, 23 February 2015 10:19:58 UTC