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

Unified Diff: Source/web/tests/data/pageserializer/css/css_test_page.html

Issue 1203873004: Retrieve resources from media and supports query rules while serializing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove unnecessary include Created 5 years, 6 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: Source/web/tests/data/pageserializer/css/css_test_page.html
diff --git a/Source/web/tests/data/pageserializer/css/css_test_page.html b/Source/web/tests/data/pageserializer/css/css_test_page.html
index badff29f68f73ce50db801940325cfdf8340a1cc..697e4fc2b3fb7a6fe200524816be99598def8256 100644
--- a/Source/web/tests/data/pageserializer/css/css_test_page.html
+++ b/Source/web/tests/data/pageserializer/css/css_test_page.html
@@ -19,6 +19,22 @@
</style>
<style>
+@media not all {
+ body {
+ background-image: url('do_not_serialize.png');
+ }
+} /* media not all */
philipj_slow 2015/06/25 09:07:41 Don't need these /* end comments */ I think.
+
+@supports (invalid-css-property: invalid-css-value) {
+ body {
+ background-image: url('do_not_serialize.png');
+ }
+} /* supports (invalid-css-property: invalid-css-value) */
+
+#nonexistentDiv {
+ background-image: url('do_not_serialize.png');
+}
+
#divBlue {
background-image:url('blue_background.png');
}
@@ -31,6 +47,18 @@ ol {
list-style-image: url('ol-dot.png');
}
+@media all {
+ #divPink {
+ background-image: url('pink_background.png');
+ }
+} /* media all */
+
+@supports (background-image: url('brown_background.png')) {
philipj_slow 2015/06/25 09:07:41 Maybe something trivial like display:block so that
+ #divBrown {
+ background-image: url('brown_background.png');
+ }
+} /* @supports (background-image: url('brown_background.png')) */
+
</style>
<script>
@@ -82,6 +110,16 @@ This div has a green image as its background.
This div has a purple image as its background.
</div>
+<!-- Style is defined in a media query -->
+<div id='divPink'>
+This div has a pink image as its background.
+</div>
+
+<!-- Style is defined in a supports feature query -->
+<div id='divBrown'>
+This div has a brown image as its background.
+</div>
+
Unordered list:<br>
<ul>
<li>Blue</li>
« Source/core/page/PageSerializer.cpp ('K') | « Source/web/tests/PageSerializerTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698