mirror of
https://github.com/servo/servo.git
synced 2025-08-25 15:18:22 +01:00
Update web-platform-tests to revision be5419e845d39089ba6dc338c1bd0fa279108317
This commit is contained in:
parent
aa199307c8
commit
2b6f573eb5
3440 changed files with 109438 additions and 41750 deletions
|
@ -0,0 +1,17 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title>Setting scrollTop to 0 immediately after toggling display from "none" on an element that had nonzero scrollTop before should work.</title>
|
||||
<link rel=match href="scrollTop-display-change-ref.html">
|
||||
<div id="scroller" style="height: 100px; overflow: scroll">
|
||||
<div style="height: 1000px">
|
||||
I should be visible.
|
||||
</div>
|
||||
I should not be visible.
|
||||
</div>
|
||||
<script>
|
||||
scroller.scrollTop = 1000;
|
||||
scroller.style.display = "none";
|
||||
var win = scroller.scrollTop; // Force layout flush
|
||||
scroller.style.display = "";
|
||||
scroller.scrollTop = 0;
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue