Skip to content

Commit

Permalink
Remove a TODO from the implementation of getComputedStyle
Browse files Browse the repository at this point in the history
The spec is now clear that disconnected elements shouldn't return a
style.

Closes #6860.
  • Loading branch information
mrobinson committed May 10, 2020
1 parent 75fce11 commit 4b4ea64
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions components/script/dom/cssstyledeclaration.rs
Expand Up @@ -242,8 +242,6 @@ impl CSSStyleDeclaration {
CSSStyleOwner::Element(ref el) => {
let node = el.upcast::<Node>();
if !node.is_connected() {
// TODO: Node should be matched against the style rules of this window.
// Firefox is currently the only browser to implement this.
return DOMString::new();
}
let addr = node.to_trusted_node_address();
Expand Down

0 comments on commit 4b4ea64

Please sign in to comment.