gecko-dev/gfx/tests/reftest/1444904.html
Martin Robinson f55533615b Bug 1444904 - Get the root scroll frame id from WebRender r=kats
Instead of hard-cording the root scroll frame id, get the value from
WebRender. This was previously hard-coded to 0, so when WebRender
switched to using 1 for the root scroll frame id, the positioning of
sticky frames were broken in subtle ways. This happened because they
were being parented to a root reference frame (which now uses the 0 id)
instead of the root scroll frame.

MozReview-Commit-ID: 66ArgKHGpWE

--HG--
extra : rebase_source : ff6937bf7fc8d4472eb074d0466c8dcd6fba54a8
2018-03-26 18:13:07 +02:00

37 lines
600 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
#container {
float: left;
position: sticky;
top: 0;
margin-top: -20px;
z-index: 100;
}
#target {
margin-top: 80px;
width: 20px;
height: 20px;
background: green;
}
#necessary-fixed-box {
position: fixed;
top: 0;
width: 20px;
height: 20px;
}
</style>
</head>
<body style="height: 10000px;">
<div id="container">
<div id="target"></div>
<div id="necessary-fixed-box"></div>
</div>
</body>
</html>