W3C home > Mailing lists > Public > www-style@w3.org > December 2010

[css3-ruby] The ruby display types

From: David Hyatt <hyatt@apple.com>
Date: Mon, 06 Dec 2010 14:45:41 -0600
Message-id: <BFD80830-47C9-447A-A45A-4BECA78BE66F@apple.com>
To: "www-style@w3.org list" <www-style@w3.org>
I find the current Ruby display types troublesome.

Right now in WebKit we simply don't support the display types at all.  One of the reasons for this is that there is behavior we support that can't be achieved just using the defined set of display types.

In WebKit, Ruby can be positioned or floated, and when this happens it becomes block-level.  However ruby has no such display type defined.  What is display:ruby? Is it block? Is it inline? Is it both?  It's not clear what an engine is supposed to do with:

ruby { position: absolute }

or

ruby { float: left }

or

ruby { display: "i want to be a block!" }

without a block-level display type for Ruby.

The above constructs work in WebKit because we just let Ruby use normal display types (inline, block, and even inline-block).

It doesn't feel right to me that "rubiness" should be lost just because the Ruby becomes block-level.

I'd like to propose that ruby support two display types: ruby and block-ruby.  The former is inline by default and the latter is the display type for block-level Ruby.  I'm willing to lose support for inline-block Ruby, since I don't think it is really necessary.

dave
(hyatt@apple.com)
Received on Monday, 6 December 2010 20:46:15 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:34 GMT