title: getComputedStyle of a node in chrome is empty
body: <p>I have the following line in my javascript code :</p>
  
  <pre><code>if(document.defaultView &amp;&amp; document.defaultView.getComputedStyle){
      strValue = document.defaultView.getComputedStyle(oElm).getPropertyValue(strCssRule);
  } // ...
  </code></pre>
  
  <p>To retrieve a CSS value of my node (eg: <code>strCssRule = 'color'</code>). It works on Firefox. It works on Chrome only on simple examples on a static page. When trying to integrate it in complex my application, every fields of the returned <code>CSSStyleDeclaration</code> are null.</p>
  
  <p>The node <code>oElem</code> is retrieved using jQuery (<code>oElem = $(my_selector).empty().get(0));</code>). The difference (at least the only one I could think of) between working example and my application is that my node is not integrated yet in the DOM at the time to computation (still generating the full HTML).</p>
  
  <p>I tried even when setting explicitly the CSS in the HTML delectation (eg my node is <code>&lt;div style="width:100px;"&gt;&lt;/div&gt;</code>), the CSSStyleDeclaration object is still empty.</p>
  
  <p><strong>Edit</strong>: as mentioned CBroe, the problem is that the element is not linked to the DOM yet. I guess it depends of the implementation of the browser how this case is handled. I don't know how firefox was able to  make it works but I will find something else.</p>