blob: 51ed940c021bd277434de4a09eb27376ca1fa4d7 [file] [log] [blame] [edit]
<html>
<head>
<style>
select::selection { color: red; }
input[type="button"]::selection { color: red; }
</style>
<script>
async function test() {
testRunner?.dumpAsText();
testRunner?.waitUntilDone();
document.execCommand("SelectAll");
await testRunner?.displayAndTrackRepaints();
testRunner?.notifyDone();
}
</script>
</head>
<body onload="test()">
This tests that this crasher is fixed:<br>
http://bugs.webkit.org/show_bug.cgi?id=10139<br>
REGRESSION: Reproducible crash when selecting a popup/button with ::selection pseudostyle"<br>
<select>
<option>Option 1</option>
</select>
<input type="button" value="button"></input>
</body>
</html>