Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / selectors / selection-window-inactive.html
blob58b92997e69195654abc90d0ad5a0cd3aecb0b9a
1 <!DOCTYPE html>
2 <style>
3 ::selection {
4 background-color: blue;
5 color: yellow;
7 ::selection:window-inactive {
8 background-color: rgba(63, 128, 33, 0.95); /* green; alpha < 1 so that we don't blend the background color with white. */
9 color: black;
11 </style>
12 <span>Any textual selection in this sentence should have a green background when the window is inactive.</span>
13 <script>
14 var span = document.querySelector("span");
15 window.getSelection().setBaseAndExtent(span, 0, span, 1);
16 if (window.testRunner)
17 testRunner.setWindowIsKey(false);
18 </script>