Files
tubestation/layout/reftests/async-scrolling/dynamic-toolbar-nested-fixed-bottom-ref.html
Dan Robertson 9843ac2b65 Bug 1894136 - Only apply dynamic toolbar translation to the root of a subtree of fixed content. r=dlrobertson
Fixed elements nested inside an element that is already fixed would get
double translated otherwise.

Differential Revision: https://phabricator.services.mozilla.com/D226695
2024-10-25 21:32:41 +00:00

36 lines
568 B
HTML

<!DOCTYPE HTML>
<html>
<meta name="viewport" content="width=device-width">
<style>
html {
scrollbar-width: none;
}
#scrolled {
height: 2000px;
width: 100%;
}
#fixed-outer {
width: 100%;
height: 200px;
position: fixed;
bottom: 0;
background: red;
margin-bottom: 50px;
}
#fixed-inner {
width: 100%;
height: 100px;
position: fixed;
bottom: 0;
background: blue;
margin-bottom: 50px;
}
</style>
<body>
<div id="scrolled"></div>
<div id="fixed-outer">
<div id="fixed-inner"></div>
</div>
</body>
</html>