mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision ea14651f262003177d0ba5819bd2806a1327b12a
This commit is contained in:
parent
847115ba04
commit
816185f094
272 changed files with 5766 additions and 2855 deletions
|
@ -0,0 +1,12 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<!-- Our target div should be placed as if it were a child of the overflowing --
|
||||
-- thing; this is simplest to accomplish by just having the overflowing thing --
|
||||
-- absolutely positioned so the target div is placed as if it were not there -->
|
||||
<div style="overflow: auto; height: 100px; width: 200px; position: absolute">
|
||||
<div style="width: 400px; height: 10px"></div>
|
||||
</div>
|
||||
<div id="target">Modified text</div>
|
||||
<script>
|
||||
document.querySelector("div").scrollLeft = 1000;
|
||||
</script>
|
|
@ -0,0 +1,17 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title></title>
|
||||
<link rel=match href=hypothetical-box-scroll-parent-ref.html>
|
||||
<link rel="help"
|
||||
href="https://www.w3.org/TR/CSS2/visudet.html#abs-non-replaced-width">
|
||||
<div style="overflow: auto; height: 100px; width: 200px">
|
||||
<div id="target" style="position: absolute">Original text</div>
|
||||
<div style="width: 400px; height: 10px"></div>
|
||||
</div>
|
||||
<script>
|
||||
// Scroll the parent.
|
||||
document.querySelector("div").scrollLeft = 1000;
|
||||
|
||||
// Now force relayout of the abs pos div.
|
||||
document.getElementById("target").textContent = "Modified text";
|
||||
</script>
|
|
@ -0,0 +1,7 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<div>Modified text</div>
|
||||
<div style="width: 200vw; height: 10px"></div>
|
||||
<script>
|
||||
window.scrollTo(window.innerWidth * 2, 0);
|
||||
</script>
|
|
@ -0,0 +1,15 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title></title>
|
||||
<link rel=match href=hypothetical-box-scroll-viewport-ref.html>
|
||||
<link rel="help"
|
||||
href="https://www.w3.org/TR/CSS2/visudet.html#abs-non-replaced-width">
|
||||
<div style="position: absolute">Original text</div>
|
||||
<div style="width: 200vw; height: 10px"></div>
|
||||
<script>
|
||||
// Scroll the viewport.
|
||||
window.scrollTo(window.innerWidth * 2, 0);
|
||||
|
||||
// Now force relayout of the abs pos div.
|
||||
document.querySelector("div").textContent = "Modified text";
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue