2 <head><meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8">
3 <style type=
"text/css" media=
"screen">
9 -webkit-transform-origin: top left;
10 transform: rotate(
10deg);
11 border:
1px solid black;
17 <script src=
"../editing.js" language=
"JavaScript" type=
"text/JavaScript" ></script>
20 internals
.settings
.setEditingBehavior('mac');
21 function editingTest() {
22 if (window
.testRunner
)
23 window
.testRunner
.dumpSelectionRect();
25 var testNode
= document
.getElementById('test');
26 setSelectionCommand(testNode
, 0, testNode
, 0);
27 extendSelectionForwardByWordCommand();
33 <p>Tests that selection rects take transforms into account. The red box should be the bounds of the transformed selection.
</p>
34 <div class=
"transformed">
35 <p>Lorem ipsum
<span id=
"test">dolor sit amet, consectetur adipisicing
</span> elit.
</p>
38 <script>runEditingTest()</script>