mirror of
https://github.com/servo/servo.git
synced 2025-08-30 01:28:21 +01:00
Update web-platform-tests to revision 2b7dace05fc1869398ee24f84fda4c0e4c0455ae
This commit is contained in:
parent
b23125d590
commit
6c901de216
844 changed files with 19802 additions and 3093 deletions
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
body {
|
||||
height: 10000px;
|
||||
background: grey;
|
||||
}
|
||||
</style>
|
||||
<title>fullscreen root block scrolling</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/testdriver.js"></script>
|
||||
<script src="/resources/testdriver-vendor.js"></script>
|
||||
<div>This page tests that entering fullscreen doesn't adjust the scroll offset</div>
|
||||
<script>
|
||||
async_test(t => {
|
||||
document.scrollingElement.scrollTop = 300;
|
||||
document.onfullscreenchange = t.step_func_done(() => {
|
||||
assert_equals(document.fullscreenElement, document.documentElement);
|
||||
assert_not_equals(document.scrollingElement.scrollTop, 0);
|
||||
});
|
||||
document.documentElement.addEventListener('click', e => {
|
||||
document.documentElement.requestFullscreen();
|
||||
}, {once: true});
|
||||
test_driver.click(document.documentElement);
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue