Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css-generated-content / positioned-background-hit-test-crash.html
blobe72a6eaec890d03903b2f04785c2595f5417384c
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <head>
4 <title></title>
5 <style type="text/css">
6 h1
8 /* required for crash */
9 position: relative;
12 h1:before
14 /* required for crash */
15 content: "";
16 position: absolute;
18 /* Width and height so we can drag over it, values not important */
19 height: 200px;
20 width: 200px;
22 /* border so we can see it */
23 border: 1px solid red;
25 </style>
26 <script type="text/javascript">
27 if (window.testRunner)
28 testRunner.dumpAsText();
30 function finishTest()
32 eventSender.mouseUp();
33 getSelection().removeAllRanges();
34 testRunner.notifyDone();
37 function test()
39 if (!window.testRunner)
40 return;
41 testRunner.waitUntilDone();
42 eventSender.dragMode = false;
43 eventSender.mouseMoveTo(1, 1);
44 eventSender.mouseDown();
45 // Start autoscroll.
46 eventSender.mouseMoveTo(2, 2);
47 // Move into position.
48 eventSender.mouseMoveTo(50, 50);
49 // Wait for the autoscroll timer to fire.
50 setTimeout(finishTest, 200);
52 </script>
53 </head>
54 <body onload="test()">
55 <h1 id="heading">No crash means PASS</h1>
56 </body>
57 </html>