| Index: third_party/WebKit/LayoutTests/fast/images/color-profile-image-scroll-into-view.html | 
| diff --git a/third_party/WebKit/LayoutTests/fast/images/color-profile-image-scroll-into-view.html b/third_party/WebKit/LayoutTests/fast/images/color-profile-image-scroll-into-view.html | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..b1a65d93df8aa658ee7c5ddbd12d2fa441158513 | 
| --- /dev/null | 
| +++ b/third_party/WebKit/LayoutTests/fast/images/color-profile-image-scroll-into-view.html | 
| @@ -0,0 +1,50 @@ | 
| +<!DOCTYPE html> | 
| +<html> | 
| +<script src="../../resources/run-after-layout-and-paint.js"/></script> | 
| + | 
| +<style> | 
| +  div { height: 55px; overflow: hidden; } | 
| +  img { width: 250px; } | 
| +</style> | 
| + | 
| +<body> | 
| +  <!-- The blue sector of the images should be at 12 o'clock. --> | 
| +  <div> | 
| +    <img src="resources/red-at-12-oclock-with-color-profile.jpg"> | 
| +    <img src="resources/red-at-12-oclock-with-color-profile.jpg"> | 
| +    <img src="resources/red-at-12-oclock-with-color-profile.jpg"> | 
| +  </div> | 
| +  <div id="test" style="position: relative; top: 1200px; margin-bottom: 300px"> | 
| +    <img src="resources/webp-color-profile-lossy.webp"> | 
| +    <img src="resources/red-at-12-oclock-with-color-profile.jpg"> | 
| +    <img src="resources/red-at-12-oclock-with-color-profile.png"> | 
| +  <div> | 
| +</body> | 
| + | 
| +<script> | 
| +window.onload = function() { | 
| +  runAfterLayoutAndPaint(window.testRunner ? changeColorProfile : scroll); | 
| +}; | 
| + | 
| +function changeColorProfile() { | 
| +  setTimeout(function() { testRunner.setColorProfile('test', scroll) }, 100); | 
| +} | 
| + | 
| +function scroll() { | 
| +  window.addEventListener("scroll", function() { | 
| +    if (window.testRunner) | 
| +      setTimeout(function() { testRunner.notifyDone() }, 0); | 
| +  }); | 
| + | 
| +  test.scrollIntoView(); | 
| +} | 
| + | 
| +if (window.internals) | 
| +  internals.settings.setImageColorProfilesEnabled(true); | 
| + | 
| +if (window.testRunner) { | 
| +  testRunner.dumpAsTextWithPixelResults(); | 
| +  testRunner.waitUntilDone(); | 
| +} | 
| +</script> | 
| +</html> | 
|  |