mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
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:
commit
e42fddd9cc
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