mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 10:15:41 +00:00
98a6e0b59f
The first set of tests test that fixed/sticky position elements are no longer attached to the visual viewport (i.e., that they go "out of view" when the visual viewport is scrolled) and the second set of tests test that fixed/sticky position elements are attached to the layout viewport (i.e., that they "follow" the layout viewport when it's scrolled). MozReview-Commit-ID: 6H2f0oz9lW7 --HG-- extra : rebase_source : c6e1beebe58883c0e500c28d579eb187c2cc8ea1
24 lines
371 B
HTML
24 lines
371 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=2.0">
|
|
<style>
|
|
body {
|
|
height: 3000px;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
}
|
|
div {
|
|
position: absolute;
|
|
top: 0;
|
|
width: 100px;
|
|
height: 100px;
|
|
background: green;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div></div>
|
|
</body>
|
|
</html>
|