2 ::selection { color: green; background-color: yellow; }
5 Test for revision
<a href=
"http://trac.webkit.org/projects/webkit/changeset/20574">#
20574</a>.
8 The two blue boxes should be identical.
10 <div style=
"text-align: justify; width: 100px; border: solid blue;">L
<span style=
"background-color: yellow; color: green;">o r
</span>e mi psumdolor
</div>
12 <div id=
"target" style=
"text-align: justify; width: 100px; border: solid blue;">Lo re mi psumdolor
</div>
14 var text
= document
.getElementById("target").firstChild
;
15 getSelection().setBaseAndExtent(text
, 1, text
, 4);