blob: 1d71156775aa915841a6b9c02448a7ae0cb71398 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>This tests that we can clear selection properly on dynamic content with first letter.</title>
<style>
.floatClass::first-letter {
float: right;
}
#innerBody {
column-count: 2;
}
</style>
</head>
<body>
<li id=li style="float: right;">Pass if<span style="float: right;"></span></li><body id=innerBody style="height: 100px"><span id=span style="display: none;"></span>no crash.</body>
<script>
if (window.testRunner)
testRunner.dumpAsText();
innerBody.style.webkitWritingMode = "vertical-rl";
innerBody.className = "floatClass";
document.getSelection().setBaseAndExtent(span, 0, innerBody, innerBody.childNodes.length);
window.getSelection().modify("extend", "left", "documentboundary");
innerBody.scrollIntoViewIfNeeded(true);
li.style.cssText = "float: right; height: 40px; width: 40px;";
document.body.offsetHeight;
li.style.cssText = "";
</script>
</body>
</html>