tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / fast / css / target-fragment-match.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <head>
4 <style type="text/css">
5 div:target {
6     background-color: #66CCFF;
7 }
8 </style>
9 <script>
10 function test()
11 {
12     if (window.layoutTestController)
13         layoutTestController.waitUntilDone();
14
15     // Location changes need to happen outside the onload handler to generate history entries.
16     setTimeout(runTest, 0);
17 }
18
19 function runTest() {
20     window.location.hash ='#target-01';
21     document.body.offsetTop;
22     window.history.back(); // This queues up a navigation, so we need to delay the call to notifyDone.
23     if (window.layoutTestController)
24         setTimeout(function() { layoutTestController.notifyDone() }, 0);
25 }
26 </script>
27 </head>
28 <body onload="test()">
29
30 <div id="target-01">
31   <p>I should be highlighted first because of the anchor, and de-highlighted when there is no fragment.</p>
32 </div>
33
34 </body></html>