Index: LayoutTests/fast/images/color-profile-reflection.html |
diff --git a/LayoutTests/fast/images/color-profile-reflection.html b/LayoutTests/fast/images/color-profile-reflection.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3ad58fd949bcd5a57f1e9dbc2c960c6894926728 |
--- /dev/null |
+++ b/LayoutTests/fast/images/color-profile-reflection.html |
@@ -0,0 +1,32 @@ |
+<!DOCTYPE html> |
+<html> |
+<style> |
+ .reflection { |
+ -webkit-box-reflect: below 5px -webkit-gradient(linear, left top, left bottom, |
+ from(transparent), color-stop(0, transparent), to(white)); |
+ background: url("resources/red-at-12-oclock-with-color-profile.jpg"); |
+ height: 260px; |
+ } |
+</style> |
+ |
+<!-- The blue sector of the image should be at 12 o'clock, and reflected below. --> |
+<div></div> |
+ |
+<script> |
+window.onload = function() { |
+ div.classList.add('reflection'); |
+ |
+ if (Math.round(div.offsetHeight) == 260 && window.testRunner) |
+ testRunner.setColorProfile('test', done); |
+}; |
+ |
+function done() { |
+ setTimeout(function() { testRunner.notifyDone() }, 0); |
+} |
+ |
+if (window.testRunner) { |
+ testRunner.dumpAsTextWithPixelResults(); |
+ testRunner.waitUntilDone(); |
+} |
+</script> |
+</html> |