mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Allow retrieving width/height for non-positioned elements
This commit is contained in:
parent
ca56ebbb09
commit
d95ca55f26
28 changed files with 54 additions and 157 deletions
|
@ -3,6 +3,3 @@
|
|||
[read_only]
|
||||
expected: FAIL
|
||||
|
||||
[relative_property_values]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.parse.decimal.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.parse.em.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.parse.exp.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.parse.hex.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.parse.octal.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.parse.percent.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.parse.plus.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.parse.space.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.parse.trailingjunk.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.parse.whitespace.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.parse.zero.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.setAttribute.decimal.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers in setAttribute]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.setAttribute.em.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers in setAttribute]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.setAttribute.exp.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers in setAttribute]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.setAttribute.hex.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers in setAttribute]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.setAttribute.octal.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers in setAttribute]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.setAttribute.percent.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers in setAttribute]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.setAttribute.plus.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers in setAttribute]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.setAttribute.space.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers in setAttribute]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.setAttribute.trailingjunk.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers in setAttribute]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.setAttribute.whitespace.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers in setAttribute]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[size.attributes.setAttribute.zero.html]
|
||||
type: testharness
|
||||
[Parsing of non-negative integers in setAttribute]
|
||||
expected: FAIL
|
||||
|
|
@ -1,11 +1,5 @@
|
|||
[calc.html]
|
||||
type: testharness
|
||||
[calc(1px + 1pt + 1pc + 1in + 1cm + 1mm)]
|
||||
expected: FAIL
|
||||
|
||||
[calc(0px + 0pt + 0pc + 0in + 0cm + 0mm + 0rem + 0em + 0ex + 0% + 0vw + 0vh + 0vmin + 0vmax)]
|
||||
expected: FAIL
|
||||
|
||||
[calc for column-width]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -15,6 +9,3 @@
|
|||
[calc for column-count]
|
||||
expected: FAIL
|
||||
|
||||
[calc(0ch + 0px + 0pt + 0pc + 0in + 0cm + 0mm + 0rem + 0em + 0ex + 0% + 0vw + 0vh + 0vmin + 0vmax)]
|
||||
expected: FAIL
|
||||
|
||||
|
|
5
tests/wpt/mozilla/meta/mozilla/getComputedStyle.html.ini
Normal file
5
tests/wpt/mozilla/meta/mozilla/getComputedStyle.html.ini
Normal file
|
@ -0,0 +1,5 @@
|
|||
[getComputedStyle.html]
|
||||
type: testharness
|
||||
[getComputedStyle work for elements not in a document]
|
||||
expected: FAIL
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
assert_equals(cs.getPropertyValue("top"), "auto");
|
||||
assert_equals(cs.getPropertyValue("bottom"), "auto");
|
||||
assert_equals(cs.getPropertyValue("width"), "50px");
|
||||
assert_equals(cs.getPropertyValue("height"), "auto");
|
||||
assert_equals(cs.getPropertyValue("height"), "0px");
|
||||
assert_equals(cs.getPropertyValue("color"), "rgb(0, 0, 0)");
|
||||
}, "Element's resolved values");
|
||||
|
||||
|
@ -43,8 +43,8 @@
|
|||
test(function() {
|
||||
var div = document.createElement("div");
|
||||
div.id = "foo";
|
||||
assert_equals(getComputedStyle(div).getPropertyValue("width"), "");
|
||||
}, "Blank style for elements not in a document");
|
||||
assert_equals(getComputedStyle(div).getPropertyValue("width"), "50px");
|
||||
}, "getComputedStyle work for elements not in a document");
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue