gecko-dev/layout/reftests/meta-viewport/initial-scale-1.html
Hiroyuki Ikezoe 359dd0e426 Bug 1520077 - Use the minimum scale size even if no overflow:hidden is specified. r=botond
There are two mochitests need to be changed.  Both of contents have very large
element (5000px, 5000px), to avoid expanding the layout viewport to the large
size we restrict the minimum scale to 1.0 so that we can still check the layout
scroll range.

Also with this minimum scale size usage change, no-zoom-ref.html doesn't render
the horizontal scrollbar on _desktops_ for some reasons (presumably
reftest-async-zoom affects it, and possibly the reasons are the same as bug
1385145 or bug 1269739).  Instead of fixing the issue on desktops, I am going to
take a workaround to add explicit minimum-scale value here, it somehow renders
the scrollbar on desktops too.

Note that the reftest added in this commit fails without this fix.

Depends on D18041

Differential Revision: https://phabricator.services.mozilla.com/D18042

--HG--
extra : moz-landing-system : lando
2019-01-31 03:21:22 +00:00

25 lines
448 B
HTML

<!DOCTYPE html>
<meta name="viewport" content="initial-scale=1,width=device-width,minimum-scale=1">
<style>
html, body {
margin: 0;
width: 100%;
height: 100%;
}
#container {
min-width: 1600px; /* this value should be double of viewport width */
position: relative;
}
#inner {
position: absolute;
top: 0;
right: 0;
width: 100px;
height: 100px;
background: green;
}
</style>
<div id="container">
<div id="inner"></div>
</div>