mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision 9064a51d4e4c177bf4b629031c3ac8010c910132
This commit is contained in:
parent
026dc7485f
commit
0eedd13bef
215 changed files with 1862 additions and 897 deletions
|
@ -23,14 +23,23 @@
|
|||
<div id="target"></div>
|
||||
</div>
|
||||
<script>
|
||||
const target = document.getElementById("target");
|
||||
|
||||
test_computed_value("margin", "10px");
|
||||
test_computed_value("margin", "10px 20px 30px 40px");
|
||||
test_computed_value("margin", "calc(0.5em + 10px)", "30px");
|
||||
test_computed_value("margin", "30%", "60px");
|
||||
|
||||
// Since what should the margin be in presence of other margins is a bit
|
||||
// unclear (https://github.com/w3c/csswg-drafts/issues/2328), reset the margin
|
||||
// before testing.
|
||||
target.style.margin = "0";
|
||||
test_computed_value("margin-top", "10px");
|
||||
target.style.margin = "0";
|
||||
test_computed_value("margin-right", "20px");
|
||||
target.style.margin = "0";
|
||||
test_computed_value("margin-bottom", "30px");
|
||||
target.style.margin = "0";
|
||||
test_computed_value("margin-left", "40px");
|
||||
</script>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue