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

Side by Side Diff: LayoutTests/fast/images/color-profile-reflection.html

Issue 266383003: [wip] Add fast/images color profile tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <style>
4 .reflection {
5 -webkit-box-reflect: below 5px -webkit-gradient(linear, left top, left botto m,
6 from(transparent), color-stop(0, transparent), to(white));
7 background: url("resources/red-at-12-oclock-with-color-profile.jpg");
8 height: 260px;
9 }
10 </style>
11
12 <!-- The blue sector of the image should be at 12 o'clock, and reflected below. -->
13 <div></div>
14
15 <script>
16 window.onload = function() {
17 div.classList.add('reflection');
18
19 if (Math.round(div.offsetHeight) == 260 && window.testRunner)
20 testRunner.setColorProfile('test', done);
21 };
22
23 function done() {
24 setTimeout(function() { testRunner.notifyDone() }, 0);
25 }
26
27 if (window.testRunner) {
28 testRunner.dumpAsTextWithPixelResults();
29 testRunner.waitUntilDone();
30 }
31 </script>
32 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/images/color-profile-object.html ('k') | LayoutTests/fast/images/color-profile-svg.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698