summaryrefslogtreecommitdiffstats
path: root/layout/reftests/meta-viewport/desktop-mode.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/meta-viewport/desktop-mode.html')
-rw-r--r--layout/reftests/meta-viewport/desktop-mode.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/layout/reftests/meta-viewport/desktop-mode.html b/layout/reftests/meta-viewport/desktop-mode.html
new file mode 100644
index 0000000000..9351f242a8
--- /dev/null
+++ b/layout/reftests/meta-viewport/desktop-mode.html
@@ -0,0 +1,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>