mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Update web-platform-tests to revision 35077458592d7cf9349840211759aa85f20cd20c
This commit is contained in:
parent
500cb865bd
commit
9320df4683
150 changed files with 2079 additions and 765 deletions
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-overflow-3/#scroll-container">
|
||||
<link rel="match" href="incremental-scroll-ref.html">
|
||||
<script src="/common/reftest-wait.js"></script>
|
||||
<script src="/common/rendering-utils.js"></script>
|
||||
<div id="target" style="background: white; overflow: scroll; width: 500px; height: 500px;
|
||||
font-size: 40px; will-change: transform">
|
||||
</div>
|
||||
<script>
|
||||
for (var i = 0; i < 500; i++) {
|
||||
var div = document.createElement("div");
|
||||
div.textContent = i;
|
||||
target.appendChild(div);
|
||||
}
|
||||
|
||||
function scroll() {
|
||||
target.scrollTop += 500;
|
||||
if (target.scrollTop < 10000) {
|
||||
waitForAtLeastOneFrame().then(scroll);
|
||||
} else if (window.testRunner) {
|
||||
takeScreenshot();
|
||||
}
|
||||
}
|
||||
|
||||
waitForAtLeastOneFrame().then(scroll);
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue