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

Unified Diff: third_party/WebKit/Source/web/tests/data/frameserializer/css/css_test_page.html

Issue 2410693002: Add a few more edge cases to CSS serialization test. (Closed)
Patch Set: Adds the case of a CSS already being included in another frame. Created 4 years, 2 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/Source/web/tests/data/frameserializer/css/css_test_page.html
diff --git a/third_party/WebKit/Source/web/tests/data/frameserializer/css/css_test_page.html b/third_party/WebKit/Source/web/tests/data/frameserializer/css/css_test_page.html
index bf2b3d1048ec2f7b7b79c9986732137782ff8f4b..97baa8a70d1937d1b49c9c26d437cd389cf8a77a 100644
--- a/third_party/WebKit/Source/web/tests/data/frameserializer/css/css_test_page.html
+++ b/third_party/WebKit/Source/web/tests/data/frameserializer/css/css_test_page.html
@@ -6,6 +6,12 @@
<link rel="stylesheet" type="text/css" href="link_styles.css" />
<link rel="stylesheet" type="text/css" href="encoding.css" />
+<!-- This data URL contains a style referring to an image that should not be
+ serialized and a fuchsia color background -->
+<link rel="stylesheet" type="text/css"
+ href="data:text/css;charset=utf-8;base64,I2RpdkZ1Y2hzaWEgew0KICBiYWNrZ3JvdW5kLWltYWdlOiB1cmwoJ2RvX25vdF9zZXJpYWxpemUucG5nJyk7DQogIGJhY2tncm91bmQtY29sb3I6ICNGRjAwRkY7DQp9" />
carlosk 2016/10/11 23:08:54 I'm unsure of the correct HTML style, especially i
Łukasz Anforowicz 2016/10/11 23:30:37 Hmmm... non-base64-encoded form of the data: URI i
carlosk 2016/10/12 00:41:30 Replaced with an escaped sequence instead of base6
+<!-- This should be skipped for already being included from another frame -->
+<link rel="stylesheet" type="text/css" href="included_in_another_frame.css" />
<style>
@import url('import_styles.css');
@@ -60,6 +66,9 @@ ol {
}
}
+// Tries to import a resource that was already previously linked.
+@import url('link_styles.css');
+
</style>
<script>
@@ -121,6 +130,11 @@ This div has a pink image as its background.
This div has a brown image as its background.
</div>
+<!-- Style is in linked data URL -->
+<div id='divFuchsia'>
+This div has a fuchsia image as its background.
+</div>
+
Unordered list:<br>
<ul>
<li>Blue</li>

Powered by Google App Engine
This is Rietveld 408576698