mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 58b72393db0bd273bb93268c33666cf893feb985
This commit is contained in:
parent
43a4f01647
commit
64e0a52537
12717 changed files with 59835 additions and 59820 deletions
|
@ -0,0 +1,34 @@
|
|||
<!DOCTYPE html>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<style>
|
||||
|
||||
body { height: 2000px; margin: 0 10px; }
|
||||
#before, #after { height: 100px; }
|
||||
#before { margin-bottom: 100px; }
|
||||
#container { line-height: 100px; vertical-align: top; }
|
||||
|
||||
</style>
|
||||
<div id="container">
|
||||
<div id="before">before</div>
|
||||
<span id="inline">inline</span>
|
||||
<div id="after">after</div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
// Tests anchoring inside an anonymous block box. The anchor selection algorithm
|
||||
// should descend into the children of the anonymous box even though it is fully
|
||||
// contained in the viewport.
|
||||
|
||||
test(() => {
|
||||
document.scrollingElement.scrollTop = 150;
|
||||
|
||||
var span = document.querySelector("#inline");
|
||||
var newSpan = document.createElement("span");
|
||||
newSpan.innerHTML = "inserted<br>";
|
||||
span.parentNode.insertBefore(newSpan, span);
|
||||
|
||||
assert_equals(document.scrollingElement.scrollTop, 250);
|
||||
}, "Anchor selection descent into anonymous block boxes.");
|
||||
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue