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