- From: Richard Ishida <ishida@w3.org>
- Date: Thu, 04 Jul 2013 13:33:47 +0100
- To: "public-test-infra@w3.org" <public-test-infra@w3.org>
I wanted to write some tests for the HTML5 Ruby Extension spec, and the main spec[1]. I needed some way to detect whether the ruby text was placed above the base text (and eventually below too). I thought I had it figured out - use .offsetTop on the rt and rb elements (or a span element if no rb allowed). But then I got some wierd results on IE9 and IE10. They show the top of the rt appearing above the base in the following tests, but the offsets indicate that the top of the rt box is *below* that of the rb box(?!). http://www.w3.org/International/tests/html5/generate?test=ruby-extension-001&output=tf http://www.w3.org/International/tests/html5/generate?test=ruby-extension-002&output=tf (These links produce a verbose version of the test with rather over-careful code and diagnostic information included.) Anyone got any ideas how to get around the IE problem (which could include a totally different approach to pass detection)? RI [1] http://www.w3.org/TR/html5/text-level-semantics.html#the-ruby-element -- Richard Ishida, W3C http://rishida.net/
Received on Thursday, 4 July 2013 12:34:16 UTC