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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/squashing/dont-squash-into-blend-mode.html

Issue 1730653002: Move squash preventing reasons out of compositing reasons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug and test fixes. Created 4 years, 9 months 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 unified diff | Download patch
OLDNEW
1 <!doctype HTML> 1 <!doctype HTML>
2 Any errors will show below this line. 2 Any errors will show below this line.
3 <div id="target" style="position: absolute; width: 200px; height: 200px; will-ch ange: transform; background: lightblue; mix-blend-mode: overlay;"></div> 3 <div id="target" style="position: absolute; width: 200px; height: 200px; will-ch ange: transform; background: lightblue; mix-blend-mode: overlay;"></div>
4 <div style="position: absolute; width: 200px; height: 200px; top: 100px; left: 1 00px; background: lightgray"></div> 4 <div style="position: absolute; width: 200px; height: 200px; top: 100px; left: 1 00px; background: lightgray"></div>
5 <script src="../../resources/testharness.js"></script> 5 <script src="../../resources/testharness.js"></script>
6 <script> 6 <script>
7 if (window.testRunner) 7 if (window.testRunner)
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 onload = function() { 9 onload = function() {
10 if (window.internals) { 10 if (window.internals) {
11 var layers = JSON.parse(internals.layerTreeAsText(document, 1)); 11 var layers = JSON.parse(internals.layerTreeAsText(document, internals.LA YER_TREE_INCLUDES_DEBUG_INFO));
12 assert_true(layers.children[0].children[0].children[1].compositingReason s[1] == "Squashing a layer with blending is not supported."); 12 assert_true(layers.children[0].children[0].children[1].compositingReason s[1] == "Layer was separately composited because it could not be squashed.");
13 assert_true(layers.children[0].children[0].children[1].squashingDisallow edReasons[0] == "Squashing a layer with blending is not supported.");
13 } 14 }
14 }; 15 };
15 </script> 16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698