blob: 7dc57c60d2199512f603f33b13cb8acfd42e1b9d [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<p>This tests modifying selection after triggering a style change. Selection should be updated immediately.
You should see the "hello" selected below as "world" turns red.</p>
<input type="text" value="hello" autofocus/>
<input type="text" value="world" style="color: red" />
<style> * {outline: none} </style>
<script>
document.querySelector('input').select();
</script>
</body>
</html>