blob: 3645c948a6df27c1678d02c17a8b5778f32c04e2 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style> p { margin: 0px; } </style>
</head>
<body>
<div style="font-family: monospace; monospace; -webkit-transform: rotate(-45deg); width: 200px; height: 200px; -webkit-transform-origin: top right; font-size:50px;">
<p>hello</p>
<p>world</p>
</div>
<script>
// This test ensures WebKit can extend selection vertically inside transform.
window.getSelection().setPosition(document.getElementsByTagName('p')[0].firstChild, 2);
window.getSelection().modify('extend', 'forward', 'line');
</script>
</body>
</html>