Viewport: Size unscaled

Test Description: This test checks that window.visualViewport returns correct sizes without any pinch-zoom page scale applied.

window.visualViewport width and height is (1280, 720).

window.visualViewport width and height when scrollbars are present is (1280, 720).

Summary

Harness status: OK

Found 4 tests

Details

ResultTest NameMessage
PassvisualViewport.width should match documentElement.clientWidth when unzoomed.
Asserts run
Pass
assert_equals(1280, 1280)
    at Test.<anonymous> ( /visual-viewport/viewport-unscaled-size.html:30:15)
PassvisualViewport.height should match documentElement.clientHeight when unzoomed.
Asserts run
Pass
assert_equals(720, 720)
    at Test.<anonymous> ( /visual-viewport/viewport-unscaled-size.html:33:15)
PassvisualViewport.width should exclude scrollbar.
Asserts run
Pass
assert_equals(1280, 1280)
    at Test.<anonymous> ( /visual-viewport/viewport-unscaled-size.html:43:15)
PassvisualViewport.height should exclude scrollbar.
Asserts run
Pass
assert_equals(720, 720)
    at Test.<anonymous> ( /visual-viewport/viewport-unscaled-size.html:46:15)