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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/images/color-profile-image-pseudo-content.html

Issue 1309393007: [poc] redecode Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: resetColorProfileForTesting rename Created 5 years 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 <html>
3 <style>
4 h1 {
5 overflow: hidden;
6 width: 792px;
7 height: 160px;
8 }
9
10 h1:before {
11 content: url("resources/red-at-12-oclock-with-color-profile.jpg");
12 display: inline-block;
13 margin: 0px -20px;
14 }
15 </style>
16
17 </body>
18 <!-- The blue sector of the content image should be at 12 o'clock. -->
19 <h1>
20 pseudo-content image replacement
21 </h1>
22 </body>
23
24 <script>
25 window.onload = function() {
26 if (window.testRunner)
27 setTimeout(function() { testRunner.setColorProfile('test', done) }, 100);
28 };
29
30 function done() {
31 if (window.testRunner)
32 setTimeout(function() { testRunner.notifyDone() }, 0);
33 }
34
35 if (window.internals)
36 internals.settings.setImageColorProfilesEnabled(true);
37
38 if (window.testRunner) {
39 testRunner.dumpAsTextWithPixelResults();
40 testRunner.waitUntilDone();
41 }
42 </script>
43 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698