mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Return None as style for elements not in a document
This commit is contained in:
parent
acbca7b3aa
commit
36145d0686
2 changed files with 11 additions and 0 deletions
|
@ -40,6 +40,12 @@
|
|||
assert_equals(getComputedStyle(div, '::after').getPropertyValue("color"), "");
|
||||
}, "Missing :after pseudoelement");
|
||||
|
||||
test(function() {
|
||||
var div = document.createElement("div");
|
||||
div.id = "foo";
|
||||
assert_equals(getComputedStyle(div).getPropertyValue("width"), "");
|
||||
}, "Blank style for elements not in a document");
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue