Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / styles-4 / styles-source-lines.html
blobb02410bc7ec7ab03fa094c1bf5e6dc5c3c2d8275
1 <html>
2 <head>
3 <!--
4 Line numbers are reported wrt the opened style tag baseline.
5 Allow some space here to align local line numbers to be style + 10.
6 Selector sourceLine is the line of the corresponding { following the
7 selector text.
8 -->
10 <style type="text/css" media="screen">
11 #main, .at_line_11::/*
12 Multiline comment
13 before pseudo element
14 */before
16 color:red;
17 content: "Before"
21 Multiline comment followed with whitespace
26 #main, .at_line_26
30 /* Comment in definition*/
31 /* Comment in definition 2*/
33 /* Comment in definition 3
34 */font-family:/* Comment in
35 value */courier;
36 color blue;
37 }/*Multiline comment
39 followed by selector
40 */#main,
41 .at_line_41
44 font-size:
45 10px;
49 #main, .at_line_49
51 border: 1px solid
52 red;
54 </style>
56 <script src="../../../http/tests/inspector/inspector-test.js"></script>
57 <script src="../../../http/tests/inspector/elements-test.js"></script>
58 <script>
60 function test()
62 InspectorTest.selectNodeAndWaitForStyles("main", step1);
64 function step1()
66 InspectorTest.dumpSelectedElementStyles(true, false, true);
67 InspectorTest.completeTest();
71 </script>
72 </head>
74 <body onload="runTest()">
75 <p>
76 Tests that proper source lines are reported for the parsed styles.
77 </p>
79 <div id="main"></div>
81 </body>
82 </html>