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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/html/imports/import-style-link.html

Issue 1772853002: Block the HTML parser on external stylesheets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplified parser blocking logic Created 4 years, 9 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <script src="../../../resources/js-test.js"></script> 3 <script src="../../../resources/js-test.js"></script>
4 <script>
5 setPrintTestResultsLazily();
6 </script>
4 <head> 7 <head>
5 <link id="importLink" rel="import" href="resources/style-link-child.html"> 8 <link id="importLink" rel="import" href="resources/style-link-child.html">
6 <style> 9 <style>
7 .red-from-import { 10 .red-from-import {
8 color: white; // Overriding with white. 11 color: white; // Overriding with white.
9 }; 12 };
10 </style> 13 </style>
11 </head> 14 </head>
12 <body> 15 <body>
13 <h1>These elements should be styled appropriately:</h1> 16 <h1>These elements should be styled appropriately:</h1>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // Dyanically removing 50 // Dyanically removing
48 Array.prototype.forEach.call(importLink.import.querySelectorAll("link"), func tion(e) { e.remove(); }); 51 Array.prototype.forEach.call(importLink.import.querySelectorAll("link"), func tion(e) { e.remove(); });
49 shouldBeEqualToString("window.getComputedStyle(shouldBeBlue).color", "rgb(0, 0, 0)"); 52 shouldBeEqualToString("window.getComputedStyle(shouldBeBlue).color", "rgb(0, 0, 0)");
50 shouldBeEqualToString("window.getComputedStyle(shouldBeGreen).color", "rgb(0, 0, 0)"); 53 shouldBeEqualToString("window.getComputedStyle(shouldBeGreen).color", "rgb(0, 0, 0)");
51 finishJSTest(); 54 finishJSTest();
52 } 55 }
53 56
54 </script> 57 </script>
55 </body> 58 </body>
56 </html> 59 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698