summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/transforms/transformed-caret.html
blob: 34c51a4aa75243f4aff33b2f7bd559e4fa016236 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!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;
      transform: rotate(30deg);
    }
  </style>
  <script type="text/javascript" charset="utf-8">
    function focusBox()
    {
      var box = document.getElementById('box');
      // box.focus();
      window.getSelection().collapse(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>