gecko-dev/layout/reftests/bugs/1119117-1a.html
Timothy Nikkel adf5931715 Bug 1132371. Allow opacity items that only contain one item that paints (and others that don't) to flatten away as well. r=mattwoodrow
The optimization that allows opacity items that only contain one item (which can fold the opacity into it's own drawing) to flatten away will never apply when we have layer event region items. This is because opacity generates a stacking context and we always push a new layer event regions item for a stacking context. So if we want to keep this optimization we need to extend to to at least two items. Layer event regions items have empty bounds, which allows the non-overlapping test to pass for layer event region items. Although it will work with any non-overlapping items.
2015-02-19 19:04:09 -06:00

30 lines
316 B
HTML

<!DOCTYPE HTML>
<html>
<head>
<style>
#d1 {
overflow:hidden;
height:0;
}
#d2 {
opacity:0.50196078431;
}
#d3 {
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
background:blue;
}
</style>
</head>
<body>
<div id="d1">
<div id="d2">
<div id="d3"></div>
</div>
</div>
</body>
</html>