mirror of
https://github.com/servo/servo.git
synced 2025-09-02 19:18:23 +01:00
Update web-platform-tests to revision 3b7bd62618cf24bfb1dc12562e95f7d88557d924
This commit is contained in:
parent
19ab519564
commit
5961dbed05
71 changed files with 968 additions and 189 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue