Update web-platform-tests to revision be5419e845d39089ba6dc338c1bd0fa279108317

This commit is contained in:
Josh Matthews 2018-01-04 13:44:24 -05:00
parent aa199307c8
commit 2b6f573eb5
3440 changed files with 109438 additions and 41750 deletions

View file

@ -8,26 +8,6 @@
<meta name="flags" content="dom" />
<script src="/resources/testharness.js" type="text/javascript"></script>
<script src="/resources/testharnessreport.js" type="text/javascript"></script>
<script id="metadata_cache">/*
{
"document.elementFromPoint": {},
"document.elementFromPoint is a Function": {},
"test some point of the element: top left corner": {},
"test some point of the element: top line": {},
"test some point of the element: top right corner": {},
"test some point of the element: left line": {},
"test some point of the element: inside": {},
"test some point of the element: right line": {},
"test some point of the element: bottom left corner": {},
"test some point of the element: bottom line": {},
"test some point of the element: bottom right corner": {},
"Point (0, 0), return root element(HTML)": {},
" test negative x ": {},
" test negative y ": {},
"test outside of viewport": {},
"test the top of layer": {}
}
*/</script>
</head>
<body>
<noscript>Test not run - JavaScript required!</noscript>
@ -139,5 +119,3 @@
</script>
</body>
</html>

View file

@ -8,12 +8,6 @@
<link rel="help" href="http://www.w3.org/TR/cssom-view/#dom-htmlelement-offsetparent">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script id="metadata_cache">/*
{
"Valid the algorithm rule of offsetParent check step 1": { "assert": "The offsetParent attribute algorithm rule checking passed!" },
"Valid the algorithm rule of offsetParent check step 2": { "assert": "The offsetParent attribute algorithm rule checking passed!" }
}
*/</script>
<style>
#fixed {
position: fixed;

View file

@ -52,6 +52,7 @@
<script>
setup({explicit_timeout: true});
const container = document.getElementById('container');
const non_scrollable = document.getElementById('non_scrollable');
const root = document.getElementById('root');

View file

@ -0,0 +1,60 @@
<!DOCTYPE html>
<title>cssom-view - scroll-behavior: smooth</title>
<link rel="author" title="Rune Lillesveen" href="mailto:futhark@chromium.org">
<link rel="help" href="https://drafts.csswg.org/cssom-view/#smooth-scrolling">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
.filler { height: 10000px }
.smooth {
scroll-behavior: smooth;
}
#scrollable {
overflow: scroll;
width: 100px;
height: 100px;
}
</style>
<div id="testContainer">
<div id="scrollable">
<div class="filler"></div>
</div>
<div class="filler"></div>
</div>
<script>
test(() => {
scrollable.scrollTo(0, 5000);
assert_equals(scrollable.scrollTop, 5000, "Initially scrolls instantly");
scrollable.scrollTo(0, 0);
scrollable.className = "smooth";
scrollable.scrollTo(0, 5000);
assert_less_than(scrollable.scrollTop, 5000, "scroll-behavior:smooth should not scroll instantly");
scrollable.className = "";
scrollable.scrollTo(0, 0);
}, "scroll-behavior: smooth on DIV element");
test(() => {
window.scrollTo(0, 5000);
assert_equals(window.scrollY, 5000, "Initially scrolls instantly");
window.scrollTo(0, 0);
document.documentElement.className = "smooth";
assert_less_than(window.scrollY, 5000, "scroll-behavior:smooth should not scroll instantly");
document.documentElement.className = "";
window.scrollTo(0, 0);
}, "HTML element scroll-behavior should propagate to viewport");
test(() => {
window.scrollTo(0, 5000);
assert_equals(window.scrollY, 5000, "Initially scrolls instantly");
window.scrollTo(0, 0);
document.body.className = "smooth";
window.scrollTo(0, 5000);
assert_equals(window.scrollY, 5000, "scroll-behavior:smooth on BODY should scroll viewport instantly");
document.body.className = "";
window.scrollTo(0, 0);
}, "BODY element scroll-behavior should not propagate to viewport");
testContainer.style.display = "none";
</script>

View file

@ -0,0 +1,8 @@
<!doctype html>
<meta charset=utf-8>
<div id="scroller" style="height: 100px; overflow: scroll">
<div style="height: 1000px">
I should be visible.
</div>
I should not be visible.
</div>

View file

@ -0,0 +1,17 @@
<!doctype html>
<meta charset=utf-8>
<title>Setting scrollTop to 0 immediately after toggling display from "none" on an element that had nonzero scrollTop before should work.</title>
<link rel=match href="scrollTop-display-change-ref.html">
<div id="scroller" style="height: 100px; overflow: scroll">
<div style="height: 1000px">
I should be visible.
</div>
I should not be visible.
</div>
<script>
scroller.scrollTop = 1000;
scroller.style.display = "none";
var win = scroller.scrollTop; // Force layout flush
scroller.style.display = "";
scroller.scrollTop = 0;
</script>

View file

@ -38,21 +38,6 @@
height:150px;
}
]]></style>
<script id="metadata_cache" type="text/javascript"><![CDATA[/*
{
"elemSimple.clientHeight is the height of the padding edge": {},
"elemSimple.scrollHeight is its clientHeight": {},
"elemSimple.clientWidth is the width of the padding edge": {},
"elemSimple.scrollWidth is its clientWidth": {},
"elemOverflow.clientHeight is the height of the padding edge": {},
"elemOverflow.scrollHeight is the height of its scrolled contents (ignoring padding, since we overflowed)": {},
"elemOverflow.clientWidth is the width of the padding edge": {},
"elemOverflow.scrollHeight is the width of its scrolled contents (ignoring padding, since we overflowed)": {},
"elemNestedOverflow.clientHeight is the height of the padding edge": {},
"elemNestedOverflow.scrollHeight is the height of its scrolled contents (ignoring padding, since we overflowed)": {},
"elemNestedOverflow.clientWidth is the height of the padding edge": {},
"elemNestedOverflow.scrollWidth is the width of its scrolled contents (ignoring padding, since we overflowed)": {}
*/ ]]></script>
</head>
<body>
<noscript>Test not run - javascript required.</noscript>

View file

@ -37,21 +37,6 @@
height:150px;
}
]]></style>
<script id="metadata_cache" type="text/javascript"><![CDATA[/*
{
"elemSimple.clientHeight is the height of the padding edge": {},
"elemSimple.scrollHeight is its clientHeight": {},
"elemSimple.clientWidth is the width of the padding edge": {},
"elemSimple.scrollWidth is its clientWidth": {},
"elemOverflow.clientHeight is the height of the padding edge": {},
"elemOverflow.scrollHeight is the height of its scrolled contents (ignoring padding, since we overflowed)": {},
"elemOverflow.clientWidth is the width of the padding edge": {},
"elemOverflow.scrollHeight is the width of its scrolled contents (ignoring padding, since we overflowed)": {},
"elemNestedOverflow.clientHeight is the height of the padding edge": {},
"elemNestedOverflow.scrollHeight is the height of its scrolled contents (ignoring padding, since we overflowed)": {},
"elemNestedOverflow.clientWidth is the height of the padding edge": {},
"elemNestedOverflow.scrollWidth is the width of its scrolled contents (ignoring padding, since we overflowed)": {}
*/ ]]></script>
</head>
<body>
<noscript>Test not run - javascript required.</noscript>

View file

@ -13,22 +13,6 @@
<body>
<noscript>Test not run - javascript required.</noscript>
<div id="log" />
<script id="metadata_cache">/*
{
"window_exposed_functions": {
"assert": ["window functions are exposed"]
},
"window_functions": {
"assert": ["window functions are instances of Function"]
},
"window_properties": {
"assert": ["window properties are owned by window"]
},
"window_properties_readonly": {
"assert": ["window properties are readonly"]
}
}
*/</script>
<script type="text/javascript"><![CDATA[
/*
Window Functions