4 background-color: blue;
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. */
12 <span>Any textual selection in this sentence should have a green background when the window is inactive.
</span>
14 var span
= document
.querySelector("span");
15 window
.getSelection().setBaseAndExtent(span
, 0, span
, 1);
16 if (window
.testRunner
)
17 testRunner
.setWindowIsKey(false);