Auto merge of #6851 - dzbarsky:gCS, r=jdm

Return None as style for elements not in a document



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6851)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-07-30 16:30:57 -06:00
commit e42fddd9cc
2 changed files with 11 additions and 0 deletions

View file

@ -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>