mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 388763aee0d14246a2f8ebb24176424cc1983820
This commit is contained in:
parent
0838d782c6
commit
b24cb329fb
202 changed files with 11044 additions and 1361 deletions
|
@ -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" &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue