forked from mirrors/gecko-dev
Automatic update from web-platform-tests Fix reftest-wait usage in some tests -- Add a lint that anything that uses the reftest-wait script specifies reftest-wait Not having the reftest-wait class on the root is a pretty clear indication of a bug and one that's relatively easy to avoid. Of course this doesn't catch all cases where something happens after load and reftest-wait is required but it at least catches some of the more obvious errors -- Fix mypy annotations for parsing -- Update tools/lint/rules.py Co-authored-by: Chris Harrelson <chrishtr@gmail.com> -- wpt-commits: 7bf1d81fca9dfa5a5bcc33ab4e2c5b6219426a11, 5b4049b18faae5953d3b8470715bb405ea99eec4, c913981fd467faca7de998a269afa1f8e8961bec, 67c3f228ec036e90aeb11d2ce13c0bb8061584d3 wpt-pr: 27075
44 lines
816 B
HTML
44 lines
816 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<head>
|
|
<link rel="author" title="Chris Harrelson" href="mailto:chrishtr@chromium.org">
|
|
<link rel="help" href="https://drafts.csswg.org/css-scroll-anchoring/">
|
|
<script src="/common/reftest-wait.js"></script>
|
|
</head>
|
|
<style>
|
|
#outer {
|
|
overflow: hidden;
|
|
width: 500px;
|
|
height: 500px;
|
|
}
|
|
#inner {
|
|
overflow: auto;
|
|
position: relative;
|
|
width: 500px;
|
|
height: 2000px;
|
|
}
|
|
p {
|
|
|
|
font: 48pt monospace;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="outer">
|
|
<div id="inner">
|
|
<p>Anchor</p>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
const outer = document.querySelector("#outer");
|
|
const inner = document.querySelector("#inner");
|
|
|
|
onload = () => {
|
|
requestAnimationFrame(() => {
|
|
requestAnimationFrame(() => {
|
|
outer.scrollTo(0, 70);
|
|
takeScreenshot();
|
|
});
|
|
});
|
|
};
|
|
</script>
|