blob: 475e9849f911a5b9ea775b15b1a1cc5aa88f3862 [file] [log] [blame]
if (window.testRunner) {
window.addEventListener('load', function () {
document.getElementById('layers').textContent = internals.layerTreeAsText(document);
document.getElementById('test').style.display = 'none';
}, false);
.stacking-context {
position: absolute;
z-index: -1;
.accelerated {
transform: rotateX(0deg);
.blended {
mix-blend-mode: multiply;
<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">
<pre id="layers">Layer tree goes here when testing.</pre>