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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/previews/client-lofi-sprite.html

Issue 2795173002: Do not show image placeholders for CSS sprites (Closed)
Patch Set: Addressed kouhei comments Created 3 years, 7 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 CSS sprite image is shown, instead of placeholder i mage. -->
4 <div id="sprite1"></div>
5 <div id="sprite2"></div>
6 <div id="sprite3"></div>
7 <div id="sprite4"></div>
8 <script>
9 window.internals.settings.setFetchImagePlaceholders(true);
10 document.getElementById("sprite1").style.cssText = 'width: 40px; height: 40p x; background: url(https://127.0.0.1:8443/resources/square200.png) 0 0;';
11 document.getElementById("sprite2").style.cssText = 'width: 40px; height: 40p x; background: url(https://127.0.0.1:8443/resources/square200.png) 0 10px;';
12 document.getElementById("sprite3").style.cssText = 'width: 40px; height: 40p x; background: url(https://127.0.0.1:8443/resources/square200.png) 10px 0;';
13 document.getElementById("sprite4").style.cssText = 'width: 40px; height: 40p x; background: url(https://127.0.0.1:8443/resources/square200.png) 10px 10px;';
14 </script>
15 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698