Summarized test results:
Ruby markup

Intended audience: users, XHTML/HTML coders (using editors or scripting), script developers (PHP, JSP, etc.), CSS coders, Web project managers, and anyone who wants to know whether ruby markup works in current browsers.

Updated

These tests check whether user agents recognize language declarations for HTML and XHTML documents, and apply the expected prioritisation in case of mismatches between multiple declarations.

Only the most basic assumptions are made about the positioning of the ruby text. See the CSS tests for more detail about style and position.

Results

A number of tests were relevant only if the browser supported ruby. Tests that are not relevant are marked as n/a.

To see detailed results for a single test, click on the link in the right-most column. To submit test data for a single test, click on the link in the left-most column.

The tables show the latest results from the W3C Test Framework. Below the tables are summaries of the results at a given date. The table data may be more up-to-date than the summary. The tables may also contain some incorrectly scored tests, and tests that relate to non-released versions of browsers. These are not included in the summary.

Simple ruby

Assertion Gecko Presto Trident WebKit Detailed results
basic rendering, with rb [Exploratory test] When simple ruby markup is used with the rb tag, the ruby text appears above the base text at approximately half the font size.
basic rendering, no rb When simple ruby markup is used without the rb tag, the ruby text appears above the base text at approximately half the font size.
no rb, multiple bases in one ruby When multiple ruby bases appear within a single ruby element, without the rb tag, the ruby text appears above the appropriate base text at approximately half the font size.
rp, with rb [Exploratory test] Ruby parentheses in the source are hidden if the browser supports ruby.
rp, no rb Ruby parentheses in the source are hidden if the browser supports ruby.

2011-11-12: Only Internet Explorer, Safari and Chrome all handle simple ruby. They handle it equally well whether there is an rb tag or not. They also handle multiple base+annotations in a single ruby element.

IE, Safari and Chrome also handle the rp element correctly – hiding the parentheses when they display ruby text.

Complex ruby

Assertion Gecko Presto Trident WebKit Detailed results
multiple ruby texts [Exploratory test] If there are two ruby texts, the first is placed above and the second below the base text.
two-line tabulation [Exploratory test] Multiple ruby texts are placed correctly relative to multiple ruby bases.
simple tabulation with span [Exploratory test] An rpspan element causes ruby to be centred between the two relevant ruby bases.
simple tabulation with width mismatches [Exploratory test] In complex ruby, ruby bases and ruby texts do not overlap by default.
three-line tabulation [Exploratory test] When complex ruby has multiple ruby texts associated with multiple ruby bases displays, the rb and rt content is aligned as expected.
three-line tabulation with span [Exploratory test] When complex ruby has multiple ruby texts associated with multiple ruby bases displays but the ruby text after the base spans all the base text, the content is aligned as expected.
three-line tabulation with wide span [Exploratory test] When complex ruby has multiple ruby texts associated with multiple ruby bases displays and the ruby text after the base spans all the base text and is very wide, the content is aligned as expected.

2011-11-12: No browser supports either two ruby texts per base element, using the XHTML 1.1 model, nor tabular arrangements using rbc and rtc.

Selecting markup for styling

Assertion Gecko Presto Trident WebKit Detailed results
rb styling [Exploratory test] When simple ruby markup is used with the rb tag, it is possible to style the rb tag.
styling base text surrounded by span It is possible to style the whole ruby base text using a span element.
styling base text partially surrounded by span It is possible to style part of the ruby base text using a span element.
styling base text surrounded by span, with rb [Exploratory test] It is possible to style the whole ruby base text using a span element.
styling base text partially surrounded by span, with rb [Exploratory test] It is possible to style part of the ruby base text using a span element.
styling base text with, no rb [Exploratory test] When simple ruby markup is used without the rb tag, it is not possible to style the base text by using rb in a selector.

2011-11-12: All latest versions of browsers tested allowed you to style the rb tag or a span tag around the ruby base text, whether there were rb tags involved or not. Although IE9 allows it, IE8 does not.

Base text was not styled by using rb as a selector if there was no rb tag present.

Multiplying markup

Assertion Gecko Presto Trident WebKit Detailed results
nested ruby [Exploratory test] When simple ruby markup is nested, it is possible to produce two sets of ruby text associated with a single base text.
doubled rt tags [Exploratory test] When ruby base text is followed by two rt elements, the second rt element does not appear above or below the horizontal base text.

2011-11-12: Of the three browsers that support ruby rendering, only Safari and Chrome displayed multiple ruby texts against a single ruby base. IE did not. Both Safari and Chrome, however, displayed the second ruby text above the first, rather than putting one above and one below the base text.

If two rt tags followed some base text, Safari and Chrome displayed the second rt text on the same line as the base text. IE, however, moved it alongside the first rt, above the base text.