blob: 48b059670c2b6af74c54d9697616fb844e8d5eae [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 a blending element having accelerated
descendants will get accelerated and its stacking context element
will get accelerated as well-->
<div class="stacking-context" style="background-color:red">
<div class="stacking-context" style="background-color: green">
<div class="blended" style="background-color: blue">
<img class="accelerated" src="resources/reference.png">
<pre id="layers">Layer tree goes here when testing.</pre>