Update web-platform-tests to revision 3b7bd62618cf24bfb1dc12562e95f7d88557d924

This commit is contained in:
WPT Sync Bot 2020-10-27 08:22:29 +00:00
parent 19ab519564
commit 5961dbed05
71 changed files with 968 additions and 189 deletions

View file

@ -93,12 +93,16 @@ function nonQuirksTest(rootDisplay, bodyDisplay) {
nonQuirksDoc.documentElement.style.display = rootDisplay;
nonQuirksDoc.body.style.display = bodyDisplay;
// Tests for non-quirks mode document.
assert_equals(nonQuirksDoc.scrollingElement, nonQuirksDoc.documentElement,
"scrollingElement in standards mode should be the document element.");
nonQuirksDoc.documentElement.style.overflow = "scroll";
nonQuirksDoc.body.style.overflow = "scroll";
assert_equals(nonQuirksDoc.scrollingElement, nonQuirksDoc.documentElement);
for (let rootOverflow of ["", "clip", "scroll", "hidden", "visible"]) {
for (let bodyOverflow of ["", "clip", "scroll", "hidden", "visible"]) {
nonQuirksDoc.documentElement.style.overflow = rootOverflow;
nonQuirksDoc.body.style.overflow = bodyOverflow;
assert_equals(nonQuirksDoc.scrollingElement, nonQuirksDoc.documentElement);
}
}
nonQuirksDoc.removeChild(nonQuirksDoc.documentElement);
assert_equals(nonQuirksDoc.scrollingElement, null);