| <script src="../../resources/js-test-pre.js"></script> |
| display: inline-block; /* clamp the width of the enclosing P to its contents */ |
| -webkit-box-orient: vertical; |
| <div id="flexbox">line one<br>line two<a id="link" href="#" onclick="this.textContent='clicked'">not clicked</a></div> |
| description('Test that links painted after the ellipsis of a flexbox using -webkit-line-clamp is hit-testable.'); |
| var divRect = document.getElementById("flexbox").getBoundingClientRect(); |
| var aRect = document.getElementById("link").getBoundingClientRect(); |
| var clickX = divRect.left + divRect.width - (aRect.width / 2); |
| var clickY = divRect.top + divRect.height - (aRect.height / 2); |
| if (window.eventSender) { |
| eventSender.mouseMoveTo(clickX, clickY); |
| shouldBeEqualToString("document.getElementsByTagName('a')[0].textContent", "clicked"); |
| <script src="../../resources/js-test-post.js"></script> |