blob: 164af5bf463effd4bf4012fb0075afc4801a1959 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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>
|