forked from mirrors/gecko-dev
This was generated with the script at https://bug1544051.bmoattachments.org/attachment.cgi?id=9058672 Differential Revision: https://phabricator.services.mozilla.com/D27761 --HG-- extra : moz-landing-system : lando
25 lines
724 B
HTML
25 lines
724 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>device-width in meta viewport</title>
|
|
<script src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
|
<meta name="viewport" content="width=device-width">
|
|
<script src="viewport_helpers.js"></script>
|
|
</head>
|
|
<body>
|
|
<p>width=device-width</p>
|
|
<script type="application/javascript">
|
|
"use strict";
|
|
|
|
add_task(async function device_width() {
|
|
await SpecialPowers.pushPrefEnv(scaleRatio(1.0));
|
|
|
|
let info = getViewportInfo(800, 480);
|
|
is(info.width, 800, "width should be 800");
|
|
is(info.height, 480, "height should be 480");
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|