| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
| "http://www.w3.org/TR/html4/loose.dtd"> |
| |
| <html lang="en"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| <title>Caret with transform</title> |
| <style type="text/css" media="screen"> |
| #box { |
| height: 200px; |
| width: 300px; |
| margin: 80px; |
| border: 1px solid black; |
| font-size: 60pt; |
| -webkit-transform: rotate(30deg); |
| } |
| </style> |
| <script type="text/javascript" charset="utf-8"> |
| function focusBox() |
| { |
| var box = document.getElementById('box'); |
| // box.focus(); |
| window.getSelection().setPosition(box, box.childNodes.length); |
| } |
| </script> |
| </head> |
| <body onload="focusBox()"> |
| |
| <p>The caret should render correctly in transformed elements<br> |
| <a href="https://bugs.webkit.org/show_bug.cgi?id=15671">https://bugs.webkit.org/show_bug.cgi?id=15671</a></p> |
| <div id="box" contenteditable> |
| Caret |
| </div> |
| </body> |
| </html> |