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> |