summaryrefslogtreecommitdiffstats
path: root/dom/base/test/test_viewport_metrics_on_landscape_content.html
blob: ec3cfec4738cb92b3c32182306c8018efa58f122 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!doctype html>
<meta charset=utf-8>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<p id="display"></p>
<div id="content" style="display: none"></div>
<pre id="test"></pre>
<script>
'use strict';
SimpleTest.waitForExplicitFinish();
SpecialPowers.pushPrefEnv({
  "set": [
    ["dom.meta-viewport.enabled", true],
  ]
}, () => {
  // We need to open a new window to avoid running tests in an iframe since
  // we want to test metrics on the root document.
  window.open("file_viewport_metrics_on_landscape_content.html");
});
</script>