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

Unified Diff: third_party/WebKit/LayoutTests/loader/link-load-only-supported-stylesheet-types-datauri.html

Issue 1501393003: Deprecate fetching stylesheets with unsupported type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/loader/link-load-only-supported-stylesheet-types-datauri.html
diff --git a/third_party/WebKit/LayoutTests/loader/link-load-only-supported-stylesheet-types-datauri.html b/third_party/WebKit/LayoutTests/loader/link-load-only-supported-stylesheet-types-datauri.html
new file mode 100644
index 0000000000000000000000000000000000000000..0d9706b48c5d8f4d29091087c95d2b014024e6bc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/loader/link-load-only-supported-stylesheet-types-datauri.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+</script>
+ <link rel="stylesheet" type="text/css" href="data:text/css,#blue { color: blue !important; }">
+ <link rel="stylesheet" type="application/javascript" href="data:text/css,#red { color: red !important; }">
+ <link rel="stylesheet" href="data:text/css,#yellow { color: yellow !important; }">
+ <div style="color: green" id="blue">This text should be blue</div>
+ <div style="color: green" id="red">This text should be red and trigger a deprecation warning</div>
+ <div style="color: green" id="yellow">This text should be yellow</div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698