mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +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
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-overflow/#scrollbar-layout">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
<div id="container" style="width:600px; height:400px; writing-mode:vertical-rl; overflow:auto;">
|
||||
<div id="target" style="width:1000px; height:500px; background:lime;"></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
promise_test(async () => {
|
||||
await new Promise(resolve => requestAnimationFrame(resolve));
|
||||
await new Promise(resolve => requestAnimationFrame(resolve));
|
||||
// Remove the vertical scrollbar.
|
||||
document.querySelector('#target').style.height = '200px';
|
||||
assert_equals(document.querySelector('#container').scrollLeft, 0);
|
||||
}, 'Removing the vertical scrollbar of a vertical-rl container should keep scrollLeft');
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue