mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision b'8d8b273d2265095c7f5330ff231940e68fb49754'
This commit is contained in:
parent
bee09efcc5
commit
9b45fdb3f5
1819 changed files with 34819 additions and 33935 deletions
|
@ -37,7 +37,7 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
test(function(t) {
|
||||
promise_test(async function(t) {
|
||||
// Note that this test passes even without scroll anchoring because of
|
||||
// fragment anchoring.
|
||||
window.location.hash = 'fragment';
|
||||
|
@ -48,7 +48,13 @@
|
|||
var ch = document.getElementById('changer');
|
||||
ch.style.height = 100;
|
||||
|
||||
await new Promise(resolve => addEventListener('scroll', resolve, {once: true}));
|
||||
|
||||
// Height of first + height changer + fragment margin-top.
|
||||
assert_equals(window.scrollY, 1110);
|
||||
|
||||
first.remove();
|
||||
changer.remove();
|
||||
anchor.remove();
|
||||
}, 'Verify scroll anchoring interaction with fragment scrolls');
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue