From 4b4ea6483ac2181b87421c75e8f1822b133dc24c Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Sun, 10 May 2020 11:05:01 +0200 Subject: [PATCH] Remove a TODO from the implementation of getComputedStyle The spec is now clear that disconnected elements shouldn't return a style. Closes #6860. --- components/script/dom/cssstyledeclaration.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/script/dom/cssstyledeclaration.rs b/components/script/dom/cssstyledeclaration.rs index 01e41d3f0ef..ba7112b8899 100644 --- a/components/script/dom/cssstyledeclaration.rs +++ b/components/script/dom/cssstyledeclaration.rs @@ -242,8 +242,6 @@ impl CSSStyleDeclaration { CSSStyleOwner::Element(ref el) => { let node = el.upcast::(); 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();