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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/previews/client-lofi.html

Issue 2795173002: Do not show image placeholders for CSS sprites (Closed)
Patch Set: Addressed comments Created 3 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: third_party/WebKit/LayoutTests/http/tests/previews/client-lofi.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/previews/client-lofi.html b/third_party/WebKit/LayoutTests/http/tests/previews/client-lofi.html
new file mode 100644
index 0000000000000000000000000000000000000000..21d9bc014613eb79403bd2579360d871e29900e5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/previews/client-lofi.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<body>
+ <!-- This test verifies if placeholder image is shown, instead of the original image. -->
+ <table>
+ <tr><td>
+ <div id="placeholder"></div>
+ </td><td>
+ <div id="placeholder_content_image_data"></div>
+ </td></tr>
+ </table>
+ <div id="placeholder_webkit_box_reflect"></div>
+ <script>
+ window.internals.settings.setFetchImagePlaceholders(true);
+ document.getElementById("placeholder").innerHTML = '<img src="https://127.0.0.1:8443/resources/square200.png">'
+
+ document.getElementById("placeholder_webkit_box_reflect").innerHTML =
+ '<img src="https://127.0.0.1:8443/resources/square200.png" style="-webkit-box-reflect: right">'
+
+ document.getElementById("placeholder_content_image_data").innerHTML =
+ '<div class="class_content_image_data"></div> \
+ <style> \
+ .class_content_image_data::before { \
+ content: url("https://127.0.0.1:8443/resources/square200.png"); \
+ } \
+ </style>'
+ </script>
+</body>
+

Powered by Google App Engine
This is Rietveld 408576698