<!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')[1].firstChild, 3); | |
window.getSelection().modify('extend', 'backward', 'line'); | |
</script> | |
</body> | |
</html> |