Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / user-select-none-expected.html
blobd9174ac62a76515edefc1902268c71e7b228c643
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 section {
6 border: 1px solid blue;
7 padding: 5px;
8 margin: 5px;
9 display: inline-block;
10 width: 150px;
11 height: 75px;
12 vertical-align: bottom;
14 section.nosel::selection {
15 background-color: transparent;
16 color: black;
18 </style>
19 </head>
21 <body>
22 <section>
23 Everything in this box should be selected and the text
24 should be visible.
25 </section>
26 <section class="nosel">
27 Nothing in this box should be selected and the text
28 should be visible.
29 </section>
30 <section>
31 Everything in this box should be selected and the text
32 should be visible.
33 </section>
35 <script>
36 var selection = window.getSelection();
37 var range = document.createRange();
38 range.selectNodeContents(document.body);
39 selection.removeAllRanges();
40 selection.addRange(range);
41 </script>
42 </body>
43 </html>