mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005'
This commit is contained in:
parent
ace9b32b1c
commit
df68c4e5d1
15632 changed files with 514865 additions and 155000 deletions
|
@ -22,10 +22,13 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
test(function() {
|
||||
document.scrollingElement.scrollTo(0, 20000);
|
||||
document.getElementById("target").focus();
|
||||
promise_test(async function() {
|
||||
document.scrollingElement.scrollTo(0, 20000);
|
||||
await new Promise(resolve => {
|
||||
document.addEventListener("scroll", () => step_timeout(resolve, 0));
|
||||
document.getElementById("target").focus();
|
||||
});
|
||||
// Should be around 4900 (5000 - 200px of margin). Give some leeway to account for line height / borders / input padding / etc.
|
||||
assert_between_exclusive(document.scrollingElement.scrollTop, 4750, 4850, "Should honor date input scroll-margin");
|
||||
assert_between_exclusive(document.scrollingElement.scrollTop, 4600, 4850, "Should honor date input scroll-margin");
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue