blob: f357336d3a8ff57ad1d730bdbfaf212bafb57b5f [file] [log] [blame]
Tests that device emulation with insets affects window.screenWidth, window.screenHeight, screen.width and screen.height.
Emulating device: 1200x1000x1
Loading page with viewport=none
Device:
window.screenX = 10px
window.screenY = 20px
Viewport: = ?none
@media orientation = landscape
window.orientation
@media resolution = 96dpi
@media device-pixel-ratio = 1
window.devicePixelRatio = 1
Widths:
@media device-width = 1240px
screen.width = 1240px
screen.availWidth = 1240px
window.outerWidth = 1200px
window.innerWidth = 1200px
@media width = 1200px
doc.docElem.clientWidth = 1200px
doc.docElem.offsetWidth = 1200px
doc.docElem.scrollWidth = 1200px
doc.body.clientWidth = 1200px
doc.body.offsetWidth = 1200px
doc.body.scrollWidth = 1200px
Heights:
@media device-height = 1060px
screen.height = 1060px
screen.availHeight = 1060px
window.outerHeight = 1000px
window.innerHeight = 1000px
@media height = 1000px
doc.docElem.clientHeight = 1000px
doc.docElem.offsetHeight = 1000px
doc.docElem.scrollHeight = 1000px
doc.body.clientHeight = 1000px
doc.body.offsetHeight = 1000px
doc.body.scrollHeight = 1000px