OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>overflow of root element when root element itself is fullscreen</title> |
| 3 <script src="../../resources/testharness.js"></script> |
| 4 <script src="../../resources/testharnessreport.js"></script> |
| 5 <script src="../trusted-event.js"></script> |
| 6 <style>:root { overflow: scroll; }</style> |
| 7 <div id="log"></div> |
| 8 <script> |
| 9 async_test(function() |
| 10 { |
| 11 var root = document.documentElement; |
| 12 trusted_request(root, document.body); |
| 13 |
| 14 document.addEventListener("fullscreenchange", this.step_func_done(function() |
| 15 { |
| 16 // The scrollbar should remain. |
| 17 assert_equals(getComputedStyle(root).overflow, "scroll"); |
| 18 assert_less_than(root.clientWidth, window.innerWidth); |
| 19 })); |
| 20 }); |
| 21 </script> |
OLD | NEW |