mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision 0bfde9f6a8bfde0fde4dba73d7172a8eed6e946e
This commit is contained in:
parent
5d4dac8cf2
commit
6a79d6ee64
420 changed files with 901 additions and 14894 deletions
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Scroll Anchoring: Anchor node can be an image</title>
|
||||
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
|
||||
<link rel="author" title="Mozilla" href="https://mozilla.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-scroll-anchoring/#anchor-node-selection">
|
||||
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/4247">
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1540203">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<style>
|
||||
body { height: 4000px }
|
||||
#spacer { height: 100px }
|
||||
img {
|
||||
width: 500px;
|
||||
height: 500px;
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
<div id=spacer></div>
|
||||
<br><br>
|
||||
<img>
|
||||
<script>
|
||||
test(() => {
|
||||
document.scrollingElement.scrollTop = 150;
|
||||
document.querySelector("#spacer").style.height = "150px";
|
||||
assert_equals(document.scrollingElement.scrollTop, 200);
|
||||
}, "Anchor selection can select images");
|
||||
</script>
|
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Scroll Anchoring: Anchor node can be an empty inline-block</title>
|
||||
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
|
||||
<link rel="author" title="Mozilla" href="https://mozilla.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-scroll-anchoring/#anchor-node-selection">
|
||||
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/4247">
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1540203">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<style>
|
||||
body { height: 4000px }
|
||||
#ib1, #ib2 { display: inline-block; height: 100px; width: 100% }
|
||||
</style>
|
||||
<span id=ib1></span>
|
||||
<br><br>
|
||||
<span id=ib2></span>
|
||||
<script>
|
||||
|
||||
// Tests anchoring to an empty inline-block.
|
||||
|
||||
test(() => {
|
||||
document.scrollingElement.scrollTop = 150;
|
||||
document.querySelector("#ib1").style.height = "150px";
|
||||
assert_equals(document.scrollingElement.scrollTop, 200);
|
||||
}, "Anchor selection can select empty inline-blocks");
|
||||
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue