Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / repaint / text-selection-rect-in-overflow.html
blob9e6e02b1739b074c60c15353a22b16a6d6321248
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">
3 <head>
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; }
8 </style>
9 <script src="resources/text-based-repaint.js" type="text/javascript"></script>
10 <script>
11 function repaintTest()
13 getSelection().empty();
15 </script>
16 </head>
17 <body onload="runRepaintTest();">
18 <div id="t" style="height: 100px; overflow: hidden;">
19 <br><br><br><br>
20 <span id="q">Should have green background</span><br>
21 <br><br><br><br>
22 </div>
23 <script>
24 t.scrollTop = 100;
25 getSelection().setBaseAndExtent(q, 0, q, 1);
26 </script>
27 </body>
28 </html>