Previous Message
Next Message

[css-d] MSIE5 CSS Extensions: ruby-overhang - Does It Work?

Sent by Keith Schengili-Roberts on 26 January 2002 18:06


Hello there:

I'm trying to investigate the functionality of some of the "extensions" MS
has made to their browser. Am just wondering if anybody out there has
experimented with the set of ruby properties, and in particular
ruby-overhang.

As I read it, according to MS' spec (see:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/ref
erence/properties/rubyoverhang.asp) ruby-overhang is supposed to set the
amount of space between the ruby text and any adjacent text (or images,
buttons, whatever). It has three values (auto, none and whitespace), but I
can't put together example code that shows any visible difference. For
example:

<b>auto</b>
<ruby style="ruby-overhang: auto">
Ruby base
<rt>Ruby text which should be longer than the base</rt>
</ruby>
the quick brown fox jumped over the lazy dog

<p>
<b>none</b>
<ruby style="ruby-overhang: none">
Ruby base
<rt>Ruby text which should be longer than the base</rt>
</ruby>
the quick brown fox jumped over the lazy dog

<p>
<b>whitespace</b>
<ruby style="ruby-overhang: whitespace">
Ruby base
<rt>Ruby text which should be longer than the base</rt>
</ruby>
the quick brown fox jumped over the lazy dog



I would have expected to see the example that uses "none" to have the
non-ruby-ized text on either side of it to "intrude" into the ruby base
text.
I know that the CSS3 spec contains a ruby component (and a ruby-overhang
property is similarly defined), but am curious to see if anybody has put
IE's version of it into practice yet. (And I'm open to a discussion about
other such "extensions" both MS and Netscape have been adding to CSS. ;-)

8-{)}

********************************************
Keith Schengili-Roberts
Author "Core CSS"
Prentice Hall, 2000
ISBN: 0-13-083456-4
Previous Message
Next Message