| <title>Search Field with Transform</title> |
| <script src="resources/common.js"></script> |
| <script type="text/javascript" charset="utf-8"> |
| Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=24503">https://bugs.webkit.org/show_bug.cgi?id=24503</a>:<br> |
| Can't click the clear button of an absolutely positioned search field. |
| <input type="search" id="target" results="5" value="Search me" style="position: absolute; left: 50px; top: 50px;"> |
| <p id="result" style="margin-top: 60px;"> |
| Clicking the (x) button should clear the field. |
| if (window.eventSender) { |
| var target = document.getElementById("target"); |
| var cancelPos = searchCancelButtonPosition(target); |
| eventSender.mouseMoveTo(cancelPos.x, cancelPos.y); |
| var result = document.getElementById("result"); |
| result.innerText = "PASS"; |
| result.innerText = "FAIL"; |
| target.value = "Some other text"; |