OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 | 3 |
4 <style type="text/css"> | 4 <style type="text/css"> |
5 /* Comment: value */ | 5 /* color: red */ |
6 | 6 |
7 @media /* Comment: value */ not /* Comment: value */print /* Comment: value */ { | 7 @media /* color: red */ not /* color: red */print /* color: red */ { |
8 /* Comment: value */ | 8 /* color: red */ |
9 /* Comment: value */#main/* Comment: value */{/* Comment: value */ backgroun
d /* Comment: value */ :/* Comment: value */blue/* Comment: value */;/* Comment:
value */ } | 9 /* color: red */#main/* color: red */{/* color: red */ background /* color:
red */ :/* color: red */blue/* color: red */;/* color: red */ } |
10 /* Comment: value */ | 10 /* color: red */ |
11 } | 11 } |
12 | 12 |
13 /* Comment: value */ | 13 /* color: red */ |
14 | 14 |
15 @font-face { | 15 @font-face { |
16 /* Comment: value */ | 16 /* color: red */ |
17 /* Comment: value */font-family/* Comment: value */:/* Comment: value */ Examp
le/* Comment: value */;/* Comment: value */ | 17 /* color: red */font-family/* color: red */:/* color: red */ Example/* color:
red */;/* color: red */ |
18 /* Comment: value */ | 18 /* color: red */ |
19 /* Comment: value */src/* Comment: value */:/* Comment: value */ url(bogus-exa
mple-url)/* Comment: value */;/* Comment: value */ | 19 /* color: red */src/* color: red */:/* color: red */ url(bogus-example-url)/*
color: red */;/* color: red */ |
20 /* Comment: value */ | 20 /* color: red */ |
21 } | 21 } |
22 | 22 |
23 /* Comment: value */ | 23 /* color: red */ |
24 | 24 |
25 #main /* Comment: value */{ | 25 #main /* color: red */{ |
26 /* Comment: value */color/* Comment: value */:/* Comment: value */ green/* Com
ment: value */;/* Comment: value */ | 26 /* color: red */color/* color: red */:/* color: red */ green/* color: red */;/
* color: red */ |
27 } | 27 } |
28 /* Comment: value */ | 28 /* color: red */ |
29 @page /* Comment: value */:right /* Comment: value */{/* Comment: value */ | 29 @page /* color: red */:right /* color: red */{/* color: red */ |
30 /* Comment: value */margin-left/* Comment: value */:/* Comment: value */ 3cm/*
Comment: value */;/* Comment: value */ | 30 /* color: red */margin-left/* color: red */:/* color: red */ 3cm/* color: red
*/;/* color: red */ |
31 /* Comment: value */margin-right /* Comment: value */: /* Comment: value */4cm
/* Comment: value */ | 31 /* color: red */margin-right /* color: red */: /* color: red */4cm /* color: r
ed */ |
32 }/*Comment: value*/ | 32 }/*color: red*/ |
33 </style> | 33 </style> |
34 | 34 |
35 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 35 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
36 <script src="../../../http/tests/inspector/elements-test.js"></script> | 36 <script src="../../../http/tests/inspector/elements-test.js"></script> |
37 <script> | 37 <script> |
38 | 38 |
39 function test() | 39 function test() |
40 { | 40 { |
41 InspectorTest.selectNodeAndWaitForStyles("main", step1); | 41 InspectorTest.selectNodeAndWaitForStyles("main", step1); |
42 | 42 |
43 function step1() | 43 function step1() |
44 { | 44 { |
45 InspectorTest.addResult("Main style:"); | 45 InspectorTest.addResult("Main style:"); |
46 InspectorTest.dumpSelectedElementStyles(true, false, true); | 46 InspectorTest.dumpSelectedElementStyles(true, false, true); |
47 InspectorTest.completeTest(); | 47 InspectorTest.completeTest(); |
48 } | 48 } |
49 } | 49 } |
50 </script> | 50 </script> |
51 </head> | 51 </head> |
52 | 52 |
53 <body onload="runTest()"> | 53 <body onload="runTest()"> |
54 <p> | 54 <p> |
55 Tests that comments in stylesheets are parsed correctly by the DevTools. | 55 Tests that comments in stylesheets are parsed correctly by the DevTools. |
56 </p> | 56 </p> |
57 | 57 |
58 <div id="main"></div> | 58 <div id="main"></div> |
59 </body> | 59 </body> |
60 </html> | 60 </html> |
OLD | NEW |