Update web-platform-tests to revision 238e9855c35a3570f824b837826aac71e50722f4

This commit is contained in:
Josh Matthews 2017-10-16 17:10:28 -04:00
parent 20a833eb75
commit cb9490cb73
173 changed files with 228 additions and 5136 deletions

View file

@ -0,0 +1,26 @@
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
body { height: 1000px; margin: 0; }
#fixed, #content { width: 200px; height: 100px; }
#fixed { position: fixed; left: 100px; top: 50px; }
#before { height: 50px; }
#content { margin-top: 100px; }
</style>
<div id="fixed">fixed</div>
<div id="before"></div>
<div id="content">content</div>
<script>
// Tests that the anchor selection algorithm skips fixed-positioned elements.
test(() => {
document.scrollingElement.scrollTop = 100;
document.querySelector("#before").style.height = "100px";
assert_equals(document.scrollingElement.scrollTop, 150);
}, "Fixed-position header.");
</script>