mirror of
https://github.com/servo/servo.git
synced 2025-08-25 07:08:21 +01:00
Update web-platform-tests to revision 912d5081b62d6e6a2f847935c82722e31cca7a1f
This commit is contained in:
parent
eeaca0b26d
commit
a44e48301c
75 changed files with 1894 additions and 292 deletions
|
@ -47,19 +47,17 @@
|
|||
let elem = document.getElementById(id);
|
||||
let elemStyle = window.getComputedStyle(elem);
|
||||
|
||||
// positioned element's auto margins should be resolved to 10px.
|
||||
test(function() {
|
||||
assert_equals(elemStyle.getPropertyValue("margin-left"), "10px");
|
||||
assert_equals(elemStyle.getPropertyValue("margin-right"), "10px");
|
||||
}, id + "_computed_margins", {
|
||||
assert: id + "-positioned element's auto margins should be resolved to 10px."
|
||||
});
|
||||
}, id + "_computed_margins");
|
||||
|
||||
// positioned element should have a left and right of 0px (as authored).
|
||||
test(function() {
|
||||
assert_equals(elemStyle.getPropertyValue("left"), "0px");
|
||||
assert_equals(elemStyle.getPropertyValue("right"), "0px");
|
||||
}, id + "_computed_left_and_right", {
|
||||
assert: id + "-positioned element should have a left and right of 0px (as authored)."
|
||||
});
|
||||
}, id + "_computed_left_and_right");
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue