blob: 0e0d37812b05fd6f6a9f2da516f1ce3700b36e1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>negative height 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="height=-200">
<script src="viewport_helpers.js"></script>
</head>
<body>
<p>height=-200</p>
<script type="application/javascript">
"use strict";
add_task(async function negative_height() {
await SpecialPowers.pushPrefEnv(scaleRatio(1.0));
let info = getViewportInfo(800, 480);
is(info.width, 980, "without specified width, we get default width");
is(info.height, 588, "without specified width, and invalid specified height, " +
"height is scaled in aspect ratio to default width");
});
</script>
</body>
</html>
|