gecko-dev/layout/reftests/display-list/1452805-ref.html
Matt Woodrow 00069d57ec Bug 1452805 - Make sure we rebuild contents infront and behind stacking contexts if their size might have changed. r=miko
The test invalidates the z-index element, so that we do a partial build with just that and the DAG no longer knows the relative ordering between it and the other blue elements.
We then expand the size of the 'first' elements stacking context, and ensure that we provide enough intersecting items to know that we're on top of the z-index element.

MozReview-Commit-ID: KP7c3bnwfBd
* * *
[mq]: fix

MozReview-Commit-ID: EuraqvaUS35

--HG--
extra : rebase_source : 9e2e4f2dc661cc552891499a614d489625ea895d
2018-04-15 16:38:45 +12:00

27 lines
487 B
HTML

<html>
<head>
<style>
div {
width: 200px;
height: 200px;
background-color: blue;
filter: greyscale(50%);
position: relative;
}
#second {
width: 600px;
height: 500px;
background-color: green;
}
</style>
</head>
<body>
<div id="top" style="z-index:-4;"></div>
<div style="top: 10px;"></div>
<div style="top: 20px;">
<div id="second" style="top: -400px;"></div>
</div>
</body>
</html>