| Index: third_party/WebKit/LayoutTests/fast/images/color-profile-image-object-fit.html | 
| diff --git a/third_party/WebKit/LayoutTests/fast/images/color-profile-image-object-fit.html b/third_party/WebKit/LayoutTests/fast/images/color-profile-image-object-fit.html | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..066ac7af6b8f8a5fb1f34cf12662a59de01a160f | 
| --- /dev/null | 
| +++ b/third_party/WebKit/LayoutTests/fast/images/color-profile-image-object-fit.html | 
| @@ -0,0 +1,38 @@ | 
| +<!DOCTYPE html> | 
| +<html> | 
| + | 
| +<style> | 
| +  img { border: 2px solid black; height: 200px; width: 250px } | 
| + | 
| +  .test { | 
| +    object-fit: contain; | 
| +  } | 
| +</style> | 
| + | 
| +<body> | 
| +  <!-- The blue sector of the images should be at 12 o'clock. --> | 
| +  <img class="test" onload="load()" src="resources/red-at-12-oclock-with-color-profile.jpg"> | 
| +  <img class="test" onload="load()" src="resources/webp-color-profile-lossy.webp"> | 
| +</body> | 
| + | 
| +<script> | 
| +var images = 0; | 
| + | 
| +function load() { | 
| +  if (++images == 2 && window.testRunner) | 
| +    setTimeout(function() { testRunner.setColorProfile('test', done) }, 200); | 
| +} | 
| + | 
| +function done() { | 
| +  setTimeout(function() { testRunner.notifyDone() }, 0); | 
| +} | 
| + | 
| +if (window.internals) | 
| +  internals.settings.setImageColorProfilesEnabled(true); | 
| + | 
| +if (window.testRunner) { | 
| +  testRunner.dumpAsTextWithPixelResults(); | 
| +  testRunner.waitUntilDone(); | 
| +} | 
| +</script> | 
| +</html> | 
|  |