Index: LayoutTests/css3/compositing/mix-blend-mode-isolation-layer.html |
diff --git a/LayoutTests/css3/compositing/mix-blend-mode-isolation-layer.html b/LayoutTests/css3/compositing/mix-blend-mode-isolation-layer.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..164af5bf463effd4bf4012fb0075afc4801a1959 |
--- /dev/null |
+++ b/LayoutTests/css3/compositing/mix-blend-mode-isolation-layer.html |
@@ -0,0 +1,36 @@ |
+<html> |
+<head> |
+<script> |
+ if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ window.addEventListener('load', function () { |
+ document.getElementById('layers').textContent = window.internals.layerTreeAsText(document); |
+ document.getElementById('test').style.display = 'none'; |
+ }, false); |
+ } |
+</script> |
+<style> |
+.stacking-context { |
+ position: absolute; |
+ z-index: -1; |
+} |
+.accelerated { |
+ -webkit-transform: rotateX(0deg); |
+} |
+.blended { |
+ mix-blend-mode: multiply; |
+} |
+</style> |
+</head> |
+<body> |
+ <div id="test"> |
+ <!--This test makes sure that in the layer tree img has blending property |
+ set to multiply and its parent element gets accelerated and |
+ has isolated set to true--> |
+ <div class="stacking-context" style="background-color: green"> |
+ <img class="accelerated blended" src="resources/reference.png"> |
+ </div> |
+ </div> |
+ <pre id="layers">Layer tree goes here when testing.</pre> |
+</body> |
+</html> |