Update web-platform-tests to revision 388763aee0d14246a2f8ebb24176424cc1983820

This commit is contained in:
WPT Sync Bot 2020-06-24 08:20:43 +00:00
parent 0838d782c6
commit b24cb329fb
202 changed files with 11044 additions and 1361 deletions

View file

@ -37,6 +37,13 @@ function compareSize(element, reference, epsilon) {
}
}
function childrenHaveEmptyBoundingClientRects(element) {
Array.from(element.children).forEach(child => {
var childBox = child.getBoundingClientRect();
assert_true(childBox.left == 0 && childBox.right == 0 && childBox.top == 0 && childBox.bottom == 0);
})
}
function participateToParentLayout(child) {
var style = window.getComputedStyle(child);
return style.getPropertyValue("display") !== "none" &&