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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/css/ignore-pending-pi-import.xhtml

Issue 1867513002: Don't apply style elements or PIs with loading imports. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do the same for processing instructions Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/css/ignore-pending-pi-import.xhtml
diff --git a/third_party/WebKit/LayoutTests/http/tests/css/ignore-pending-pi-import.xhtml b/third_party/WebKit/LayoutTests/http/tests/css/ignore-pending-pi-import.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..b0c9e1244527745419f07b2f60b0b0b049a91619
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/css/ignore-pending-pi-import.xhtml
@@ -0,0 +1,32 @@
+<?xml-stylesheet href="data:text/css,@import url(http://localhost:8080/css/resources/slow-loading-sheet.php?color=pink); h1 {color:red}" type="text/css"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <style title="myset"></style>
+</head>
+<body>
+ <h1></h1>
+ <pre id="res"></pre>
+ <script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ var result = "";
+
+ function expectComputedOnH1(name, expected) {
+ var value = getComputedStyle(document.querySelector("h1"))[name];
+ result += name + ": ";
+ if (value == expected)
+ result += "PASS\n";
+ else
+ result += "FAIL - " + value + ", expected " + expected + "\n";
+ }
+
+ document.body.offsetTop;
+ expectComputedOnH1("color", "rgb(0, 0, 0)");
+ expectComputedOnH1("backgroundColor", "rgba(0, 0, 0, 0)");
+
+ document.querySelector("#res").innerHTML = result;
+ </script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698