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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <body>
3 <!-- This test verifies if placeholder image is shown, instead of the original image. -->
4 <table>
5 <tr><td>
6 <div id="placeholder"></div>
7 </td><td>
8 <div id="placeholder_content_image_data"></div>
9 </td></tr>
10 </table>
11 <div id="placeholder_webkit_box_reflect"></div>
12 <script>
13 window.internals.settings.setFetchImagePlaceholders(true);
14 document.getElementById("placeholder").innerHTML = '<img src="https://127.0. 0.1:8443/resources/square200.png">'
15
16 document.getElementById("placeholder_webkit_box_reflect").innerHTML =
17 '<img src="https://127.0.0.1:8443/resources/square200.png" style="-webki t-box-reflect: right">'
18
19 document.getElementById("placeholder_content_image_data").innerHTML =
20 '<div class="class_content_image_data"></div> \
21 <style> \
22 .class_content_image_data::before { \
23 content: url("https://127.0.0.1:8443/resources/square200.png"); \
24 } \
25 </style>'
26 </script>
27 </body>
28
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698