mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 11:45:37 +00:00
9bebe3cf91
There are 7 test cases in this commit. - no-viewport.html A test case that wider contents should be scaled down even if no viewport meta tag exists. - viewport-width.html A test case that wider contents should be scaled down (i.e. fit to the device screen). - minimum-scale.html A test case that the initial zoom value is clamped by minimum-scale. - initial-scale-0.html A test case that specified initial-scale value is less than the default minimum scale value (0.1), in such cases we shrink the content to fit the display size. - initial-scale-100.html A test case that specified initial-scale value is greater than the default maximum scale value (10), in such cases we shrink the content to fit the display size. - initial-scale-1.html A test case that the auto initial zoom calculation doesn't apply to the documents specifying initial-scale. - box-shadow.html A test case that box-shadow-ed area isn't incorporated into the initial zoom value. Depends on D10197 Differential Revision: https://phabricator.services.mozilla.com/D10198 --HG-- extra : moz-landing-system : lando
28 lines
490 B
HTML
28 lines
490 B
HTML
<!DOCTYPE html>
|
|
<meta name="viewport" content="width=device-width">
|
|
<style>
|
|
html, body {
|
|
margin: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
scrollbar-width: none;
|
|
}
|
|
#container {
|
|
min-width: 1600px; /* this value should be double of viewport width */
|
|
min-height: 3000px;
|
|
position: relative;
|
|
}
|
|
#inner {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
width: 100px;
|
|
height: 100px;
|
|
background: green;
|
|
box-shadow: 100px 0 red;
|
|
}
|
|
</style>
|
|
<div id="container">
|
|
<div id="inner"></div>
|
|
</div>
|