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

Side by Side Diff: LayoutTests/userscripts/insert-stylesheets.html

Issue 11471034: Merge 136878 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years 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
« no previous file with comments | « LayoutTests/ChangeLog ('k') | LayoutTests/userscripts/insert-stylesheets-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 .styled { 5 .styled {
6 background-color: red; 6 background-color: red;
7 width: 0; 7 width: 0;
8 height: 100px; 8 height: 100px;
9 } 9 }
10 </style> 10 </style>
(...skipping 23 matching lines...) Expand all
34 // Since this style is more specific, it should override the original author style above. 34 // Since this style is more specific, it should override the original author style above.
35 internals.insertAuthorCSS(document, "body .styled { background-color: green; width: 100px; }"); 35 internals.insertAuthorCSS(document, "body .styled { background-color: green; width: 100px; }");
36 shouldBe("getComputedStyle(testElement).backgroundColor", "'rgb(0, 128, 0)'" ); 36 shouldBe("getComputedStyle(testElement).backgroundColor", "'rgb(0, 128, 0)'" );
37 shouldBe("testElement.offsetWidth", "100"); 37 shouldBe("testElement.offsetWidth", "100");
38 } 38 }
39 39
40 test(); 40 test();
41 </script> 41 </script>
42 </body> 42 </body>
43 </html> 43 </html>
OLDNEW
« no previous file with comments | « LayoutTests/ChangeLog ('k') | LayoutTests/userscripts/insert-stylesheets-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698