mirror of
https://github.com/servo/servo.git
synced 2025-09-14 17:08:22 +01:00
Update web-platform-tests to revision ddfc95cf0493ae147a4f6a4d7be8eff1a0c23098
This commit is contained in:
parent
1f6a864ab5
commit
7e6290451f
832 changed files with 16026 additions and 2649 deletions
|
@ -23,29 +23,34 @@
|
|||
<script><![CDATA[
|
||||
test(function() {
|
||||
var first = document.getElementById('first');
|
||||
var second = document.getElementById('second');
|
||||
var third = document.getElementById('third');
|
||||
var fourth = document.getElementById('fourth');
|
||||
|
||||
assert_equals(getComputedStyle(first).x, "0px");
|
||||
assert_equals(getComputedStyle(first).y, "0px");
|
||||
assert_equals(getComputedStyle(first).width, "auto");
|
||||
assert_equals(getComputedStyle(first).height, "auto");
|
||||
}, 'width and height default to auto');
|
||||
|
||||
test(function() {
|
||||
var second = document.getElementById('second');
|
||||
assert_equals(getComputedStyle(second).x, "10px");
|
||||
assert_equals(getComputedStyle(second).y, "20px");
|
||||
assert_equals(getComputedStyle(second).width, "30px");
|
||||
assert_equals(getComputedStyle(second).height, "40px");
|
||||
}, 'style rules are applied');
|
||||
|
||||
test(function() {
|
||||
var third = document.getElementById('third');
|
||||
assert_equals(getComputedStyle(third).x, "50px");
|
||||
assert_equals(getComputedStyle(third).y, "60px");
|
||||
assert_equals(getComputedStyle(third).width, "70px");
|
||||
assert_equals(getComputedStyle(third).height, "80px");
|
||||
}, 'attributes set properties');
|
||||
|
||||
test(function() {
|
||||
var fourth = document.getElementById('fourth');
|
||||
assert_equals(getComputedStyle(fourth).x, "10px");
|
||||
assert_equals(getComputedStyle(fourth).y, "20px");
|
||||
assert_equals(getComputedStyle(fourth).width, "30px");
|
||||
assert_equals(getComputedStyle(fourth).height, "40px");
|
||||
});
|
||||
}, 'style rules override attributes');
|
||||
]]></script>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.3 KiB |
Loading…
Add table
Add a link
Reference in a new issue