mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 11:45:37 +00:00
3859e5d739
If the frame supports it (stacking context + containing block for fixed), and a descendant was modified, we would have created an override dirty region with just the area of that descendant. In the case where no descendants are modified, we should use an empty rect, rather than the area inherited from our parent. This fixes the case where we forcibly build position:fixed frames (since they might async scroll differently to the rest of the page), but we only need to build the container item, not the whole frame subtree within it. Added a test that shows us building the non-intersecting position:fixed, but not items within it. Differential Revision: https://phabricator.services.mozilla.com/D23610 --HG-- extra : moz-landing-system : lando
30 lines
643 B
HTML
30 lines
643 B
HTML
<html class="reftest-wait">
|
|
<head>
|
|
<style>
|
|
body {
|
|
margin: 0px;
|
|
}
|
|
div {
|
|
width:100px;
|
|
height:100px;
|
|
display: inline-block;
|
|
position:absolute;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div style="position:fixed;" class="reftest-display-list">
|
|
<div style="background-color:green;" class="reftest-no-display-list">
|
|
</div>
|
|
<div id="second" style="background-color:red; top: 110px;"></div>
|
|
</body>
|
|
<script>
|
|
function doTest() {
|
|
document.getElementById("second").style.backgroundColor = "green";
|
|
document.documentElement.removeAttribute("class");
|
|
}
|
|
|
|
window.addEventListener("MozReftestInvalidate", doTest);
|
|
</script>
|
|
</html>
|