mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 03:35:33 +00:00
a7079dd4cd
When async-zooming, the compositor applies an invalid offset transformation to position:fixed elements, causing them to be positioned incorrectly until a repaint occurs. MozReview-Commit-ID: IZEN1gtpbIA --HG-- extra : rebase_source : c74df0ccdb44b4ad54c366eefbac1e46bab9dc7b
45 lines
801 B
HTML
45 lines
801 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: fixed;
|
|
height: 100px;
|
|
width: 100px;
|
|
}
|
|
div.top-left {
|
|
top: 20px;
|
|
left: 20px;
|
|
background: red;
|
|
}
|
|
div.top-right {
|
|
top: 20px;
|
|
right: 20px;
|
|
background: blue;
|
|
}
|
|
div.bottom-left {
|
|
bottom: 20px;
|
|
left: 20px;
|
|
background: green;
|
|
}
|
|
div.bottom-right {
|
|
bottom: 20px;
|
|
right: 20px;
|
|
background: purple;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="top-left"></div>
|
|
<div class="top-right"></div>
|
|
<div class="bottom-left"></div>
|
|
<div class="bottom-right"></div>
|
|
</body>
|
|
</html>
|