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..9e04fb4813ebe62fd7486c641b70edf2ae721a1e |
--- /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('whacked', 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> |