gecko-dev/gfx/tests/reftest/1435143.html
Martin Roinson 90bbf4505c Bug 1435143 - Properly unwrap Maybe<WrScrollId> for the root scroll frame. r=kats
When comparing a Maybe<WrScrollId> to another WrScrollId we need to properly
handle the case where Nothing() signifies the root scroll frame. This is
equivalent to calling scrollId.valueOr(FrameMetrics::NULL_SCROLL_ID), as was
done before WrScrolLId replaced ViewId in the WebRender ScrollingLayersHelper.
We also have DisplayListBuilder::TopmostScrollId always return a value instead
of a Maybe, since an empty clip stack means that the current scroll id is that
of the root scroll frame.

Previously Nothing() was not equivalent to WrScrollId { 0 }, which caused the
ScrollingLayersHelper to fill the mClipAndScroll value and push another
set of clip and scroll nodes onto the WebRender display list builder.

MozReview-Commit-ID: CeatZlRXtuI
2018-02-07 10:01:56 +01:00

27 lines
417 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
#header {
position: fixed;
}
#green {
position: absolute;
background: green;
border-radius: 1px;
transform: translateX(100px);
}
#text {
visibility: hidden;
}
</style>
</head>
<body>
<div id="header">
<div id="green"><span id="text">Text.</span></div>
</div>
</body>
</html>