summaryrefslogtreecommitdiffstats
path: root/layout/reftests/meta-viewport/desktop-mode.html
blob: 9351f242a80512452aa33fc02390d3d7e124f8ef (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
27
28
29
30
31
<!DOCTYPE html>
<html class="reftest-wait">
<style>
html {
  height: 100%;
  width: 100%;
}
body {
  height: 2000px;
  width: 200%;
  margin: 0px;
  padding: 0px;
}
div {
  width: 20px;
  height: 100%;
  top: 0px;
  background-color: green;
}
</style>
<div style="right: 0px;  position: fixed;"></div>
<div style="right: 25px; position: absolute;"></div>
<script>
let win = SpecialPowers.wrap(window);
SpecialPowers.spawnChrome([win.browsingContext.id], id => {
  BrowsingContext.get(id).forceDesktopViewport = true;
}).then(() => {
  document.documentElement.classList.remove('reftest-wait');
});
</script>
</html>