mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
|
@ -0,0 +1,9 @@
|
|||
"use strict";
|
||||
function compareWidthHeight(id1, id2) {
|
||||
var element1 = document.getElementById(id1);
|
||||
var style1 = getComputedStyle(element1);
|
||||
var element2 = document.getElementById(id2);
|
||||
var style2 = getComputedStyle(element2);
|
||||
return (style1.width == style2.width) &&
|
||||
(style1.height == style2.height)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue