Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / styles / region-style-crash.html
1 <html>
2 <head>
3 <style>
4 #article1 { -webkit-flow-into: flow1; }
5 #region1 { -webkit-flow-from: flow1; position: absolute; top: 10px; width: 350px; height: 25px;}
6 #p1 { color: #ff0000; }
7 @-webkit-region #region1 {
8     #p1 { color: #008000; }
9 }
10
11 </style>
12 <script src="../../http/tests/inspector/inspector-test.js"></script>
13 <script src="../../http/tests/inspector/elements-test.js"></script>
14 <script>
15
16 function test()
17 {
18     WebInspector.showPanel("elements");
19     InspectorTest.selectNodeAndWaitForStylesWithComputed("p1", dumpAllStyles);
20
21     function dumpAllStyles()
22     {
23         InspectorTest.dumpSelectedElementStyles();
24         InspectorTest.completeTest();
25     }
26 }
27
28 </script>
29 </head>
30
31 <body onload="runTest()">
32 <p>
33 Tests that webkit css region styling can be parsed correctly. Test passes if it doesn't crash.
34 </p>
35
36 <div id="article1">
37     <p id="p1">P color styled in region: #008000.</p>
38 </div>
39 <div id="region1" class="regionBox"></div>
40
41 </body>
42 </html>