blob: c8cd775cdc70821ae71f13566782ff7e98144aa6 (
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
37
|
<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 mix-blend-mode property doesn't make
the element or its stacking context to be accelerated-->
<div class="accelerated stacking-context" style="background-color:red">
<div class="stacking-context" style="background-color: green">
<img class="blended" src="resources/reference.png">
</div>
</div>
</div>
<pre id="layers">Layer tree goes here when testing.</pre>
</body>
</html>
|