summaryrefslogtreecommitdiffstats
path: root/layout/base/tests/bug1529492-1-ref.html
blob: ae643b2b92dc03cd39a2891b23089728652391e3 (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
<!DOCTYPE html>
<html class="reftest-wait">
<script src="/tests/SimpleTest/EventUtils.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<style>
.parent {
  font: 32px monospace;
  width: 26ch;
  transform: scaleX(0.5);
  transform-origin: 0 0;
}
#child {
  outline: none;
}
</style>
<div class="parent"><div id="child">.BCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz</div></div>
<script>
SimpleTest.waitForFocus(function() {
  let r = document.createRange();
  let t = child.firstChild;
  r.setStart(t, 30);
  r.setEnd(t, 30);

  let sel = getSelection();
  sel.empty();
  sel.addRange(r);

  document.documentElement.removeAttribute("class");
});
</script>