blob: 3d33f7ea5927760f5cc3b8f04c749f74ea3a93f8 [file] [log] [blame]
<!DOCTYPE html>
<style>
#root {
background-color: #ddd;
font-size: 24pt;
position: relative;
width: 200px;
}
span {
display: inline-block;
width: 100px;
}
</style>
This test verifies that a selection spanning nested flexbox boundaries
is drawn correctly.
<div id="root">
<div>
<span id="start">aaa</span><span>bbb</span>
</div>
<div>
<span>ccc</span><span id="end">ddd</span>
</div>
</div>
<script>
var start = document.querySelector('#start'),
end = document.querySelector('#end');
getSelection().setBaseAndExtent(start.firstChild, 1, end.firstChild, 2);
focus();
</script>