Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-formatting.html

Issue 1534323003: DevTools: [CSS] do not treat random css comments as disabled properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaseline Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698