mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
adf5931715
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.
30 lines
316 B
HTML
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>
|