title: How do you add stylesheets to JSDOM
body: <p>I am currently working on a project that requires me to have computed styles send to the browser via JSDOM. I am currently looking for a way to inject some basic CSS into JSDOM so that it could compute the correct inline style (Yes I know that's bad).</p>
  
  <p>From what I have found out I can use JSDOM Level 2, but from there I can't find any documentation on how to inject the styles.</p>
  
  <p>This is what I have so far;</p>
  
  <pre><code>    var document = jsdom.jsdom('&lt;!DOCTYPE html&gt;&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body id="abody" &gt;&lt;/body&gt;&lt;/html&gt;', jsdom.level(2, 'style'), {
          features : {
              FetchExternalResources : ['script', 'css'],
              QuerySelector : true
          }
      });
  </code></pre>
  
  <p>I have been inserting the css into the head tag but to no avail. And I know I could be doing the above code wrong as well.</p>
  
  <p>Any help would be great.</p>