OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 | 3 |
4 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 4 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
5 <script src="../../../http/tests/inspector/elements-test.js"></script> | 5 <script src="../../../http/tests/inspector/elements-test.js"></script> |
6 <script> | 6 <script> |
7 | 7 |
8 function test() | 8 function test() |
9 { | 9 { |
10 var formattedStyle; | 10 var formattedStyle; |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 InspectorTest.addResult("raw cssText:"); | 257 InspectorTest.addResult("raw cssText:"); |
258 InspectorTest.addResult("{" + style.cssText + "}"); | 258 InspectorTest.addResult("{" + style.cssText + "}"); |
259 } | 259 } |
260 } | 260 } |
261 </script> | 261 </script> |
262 | 262 |
263 <style> | 263 <style> |
264 | 264 |
265 #formatted { | 265 #formatted { |
266 /* leading comment */ | 266 /* leading comment */ |
267 property1: value1; /* comment1 */ | 267 color: red; /* comment1 */ |
268 property2: value2;/* comment2 */ | 268 margin: 0;/* comment2 */ /* like: property */ |
269 property3: value3 | 269 padding: 0 |
270 } | 270 } |
271 | 271 |
272 #unformatted {/*leading comment*/property1:value1;property2:value2;property3:val
ue3;} | 272 #unformatted {/*leading comment*/color:red;margin:0;padding:0;} |
273 | 273 |
274 </style> | 274 </style> |
275 </head> | 275 </head> |
276 | 276 |
277 <body id="mainBody" onload="runTest()"> | 277 <body id="mainBody" onload="runTest()"> |
278 <p> | 278 <p> |
279 Tests that InspectorCSSAgent formats the CSS style text based on the CSS model m
odifications. | 279 Tests that InspectorCSSAgent formats the CSS style text based on the CSS model m
odifications. |
280 </p> | 280 </p> |
281 <div id="formatted">Formatted</div> | 281 <div id="formatted">Formatted</div> |
282 <div id="unformatted">Unformatted</div> | 282 <div id="unformatted">Unformatted</div> |
283 </body> | 283 </body> |
284 </html> | 284 </html> |
OLD | NEW |