Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Unified Diff: LayoutTests/css3/compositing/mix-blend-mode-isolation-2-stacking-contexts.html

Issue 23511004: mix-blend-mode implementation for accelerated layers - blink part (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: removed a failing reftest dependent on render-compositor bindings Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/css3/compositing/mix-blend-mode-isolation-2-stacking-contexts.html
diff --git a/LayoutTests/css3/compositing/mix-blend-mode-isolation-2-stacking-contexts.html b/LayoutTests/css3/compositing/mix-blend-mode-isolation-2-stacking-contexts.html
new file mode 100644
index 0000000000000000000000000000000000000000..0586f9c9c6536d8650cb6d99c647f97f83dd27e9
--- /dev/null
+++ b/LayoutTests/css3/compositing/mix-blend-mode-isolation-2-stacking-contexts.html
@@ -0,0 +1,42 @@
+<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 isolation property is set only to
+ the first ascendant layer being a stacking context -->
+ <div class="stacking-context" style="background-color:red">
+ <div class="stacking-context" style="background-color: green">
+ <img class="accelerated blended" src="resources/reference.png">
+ </div>
+ </div>
+ <div class="accelerated stacking-context" style="background-color:red">
+ <div class="stacking-context" style="background-color: green">
+ <img class="accelerated blended" src="resources/reference.png">
+ </div>
+ </div>
+ </div>
+ <pre id="layers">Layer tree goes here when testing.</pre>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698