mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision df7fc2ece226676b8398ece13ddfd31b4f1eca5c
This commit is contained in:
parent
033156b961
commit
cb40a5f9fe
186 changed files with 4525 additions and 1203 deletions
|
@ -5,10 +5,12 @@
|
|||
<body>
|
||||
|
||||
<p><ruby id="o1" style="ruby-position: over">base<rt>annotation</rt></ruby></p>
|
||||
<p><ruby id="o2" style="ruby-position: under">base<rt style="ruby-position: over">annotation</rt></ruby></p>
|
||||
<p><ruby id="o2" style="ruby-position: over">base<rt style="ruby-position: under">annotation</rt></ruby></p>
|
||||
<p><ruby id="o3" style="ruby-position: under">base<rtc style="ruby-position: over"><rt style="ruby-position: under">annotation</rt></rtc></ruby></p>
|
||||
|
||||
<p><ruby id="u1" style="ruby-position: under">base<rt>annotation</rt></ruby></p>
|
||||
<p><ruby id="u2">base<rt style="ruby-position: under">annotation</rt></ruby></p>
|
||||
<p><ruby id="u2" style="ruby-position: under">base<rt style="ruby-position: over">annotation</rt></ruby></p>
|
||||
<p><ruby id="u3" style="ruby-position: over">base<rtc style="ruby-position: under"><rt style="ruby-position: over">annotation</rt></rtc></ruby></p>
|
||||
|
||||
<script>
|
||||
test(() => {
|
||||
|
@ -19,7 +21,12 @@ test(() => {
|
|||
test(() => {
|
||||
const o2 = document.querySelector('#o2');
|
||||
assert_true(o2.querySelector('rt').getBoundingClientRect().top <= o2.getBoundingClientRect().top);
|
||||
}, 'ruby-position:over on <rt> works');
|
||||
}, 'ruby-position:under on <rt> should not work');
|
||||
|
||||
test(() => {
|
||||
const o3 = document.querySelector('#o3');
|
||||
assert_true(o3.querySelector('rt').getBoundingClientRect().top <= o3.getBoundingClientRect().top);
|
||||
}, 'ruby-position:over on <rtc> works');
|
||||
|
||||
test(() => {
|
||||
const u1 = document.querySelector('#u1');
|
||||
|
@ -29,6 +36,12 @@ test(() => {
|
|||
test(() => {
|
||||
const u2 = document.querySelector('#u2');
|
||||
assert_true(u2.querySelector('rt').getBoundingClientRect().bottom >= u2.getBoundingClientRect().bottom);
|
||||
}, 'ruby-position:under on <rt> works');
|
||||
}, 'ruby-position:over on <rt> should not work');
|
||||
|
||||
test(() => {
|
||||
const u3 = document.querySelector('#u3');
|
||||
assert_true(u3.querySelector('rt').getBoundingClientRect().bottom >= u3.getBoundingClientRect().bottom);
|
||||
}, 'ruby-position:under on <rtc> works');
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue