4 <script src=
"../../resources/js-test.js"></script>
6 ul
> li { float: right; background: skyblue; }
7 ul
> li
> a { display: block; margin:
10.5px; text-decoration: none; }
12 <li><a href=
"#">Lorem ipsum
</a></li>
13 <li><a href=
"#">dolor sit amet
</a></li>
14 <li><a href=
"#">consectetur adipiscing elit
</a></li>
16 Links to the right should not wrap.
19 var elements
= document
.getElementsByTagName('li');
20 function getItemHeight(i
)
22 return elements
[i
].getBoundingClientRect().top
;
25 if (getItemHeight(0) == getItemHeight(1) && getItemHeight(0) == getItemHeight(2))
26 testPassed('All list items are on the same line');
28 testFailed('Expected all list items to be on the same line.');