fune/layout/reftests/async-scrolling/position-fixed-async-zoom-4-ref.html
Timothy Nikkel 7af5dd6078 Bug 1663537. Use scrollbar-width: none on some reftests that are not trying to test scrollbars. r=botond
These tests only failed on android, probably because the visual viewport size is different so we get a different result from the scrollbar calculation.

These tests seem to have an inconsistent mix of overflow: hidden and scrollbar-width: none. The desktop zooming scrollbars sometimes create scrollbars for overflow hidden now, so overflow hidden isn't enough, we need scrollbar-width: none.

layout/reftests/transform/compound-1-fail.html is the only file modified here that doesn't have overflow hidden or scrollbar-width: none already. Looking at the test it does not seem to be wanting to be anti-ref because of scrollbars (the transformed item looks different), so this seems to be an improvement (ie we won't pass because only the scrollbar differed).

Differential Revision: https://phabricator.services.mozilla.com/D90008
2020-09-12 06:59:53 +00:00

46 lines
823 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=2.0">
<style>
html {
scrollbar-width: none;
}
body {
height: 3000px;
margin: 0;
}
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>