summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/1529992-2.html
blob: 19876e7f657ea48edf66aec073101a27b3a158b0 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>

<!--
see version 1 of this test for details
-->

<html class="reftest-wait"><head>
<script type="text/javascript">
function onload() {
  var range = document.createRange();
  range.selectNodeContents(document.getElementById("selectMe"));
  var sel = window.getSelection();
  sel.removeAllRanges();
  sel.addRange(range);

  document.documentElement.className = '';
}
</script>
<style>
body {
    font-size: 60px;
    position: absolute;
    margin: 0px;
    padding: 0px;
}
div {
    position: absolute;
    margin: 0px;
    padding: 0px;
}
div::selection {
    /* hide all selection boxes for convenience */
    background-color: transparent;
}
#shadow6 {
    top: 200px;
    left: 200px;
}
#shadow6::selection {
    color: transparent;
    text-shadow: 30px 0px 0px green;
}
#shadow7 {
    top: 200px;
    left: 500px;
}
#shadow7::selection {
    color: transparent;
    text-shadow: 30px 0px 5px green;
}
</style>
</head><body id="selectMe" onload="onload()">
    <div id="shadow6">hello&nbsp;i</div>
    <div id="shadow7">hello&nbsp;i</div>
</body></html>