1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en" lang=
"en">
4 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=
13685</title>
5 <style type=
"text/css">
6 span#q
{ background-color: green
; }
7 span#
q::selection
{ background-color: red
; }
9 <script src=
"resources/text-based-repaint.js" type=
"text/javascript"></script>
11 function repaintTest()
13 getSelection().empty();
17 <body onload=
"runRepaintTest();">
18 <div id=
"t" style=
"height: 100px; overflow: hidden;">
20 <span id=
"q">Should have green background
</span><br>
25 getSelection().setBaseAndExtent(q
, 0, q
, 1);