title: Different rendering in SWT Browser with setText and setUrl
body: <p>I'm trying to write an Eclipse plugin that displays some information as an HTML page. For this I want to use SWT <code>Browser</code> widget. The problem is that when I set browser's content via <code>setText</code>, <code>nth-child</code> selectors do not work, but when I set the exact same content via <code>setUrl("file://...</code>, they work correctly. Why the rendering is different and how can I achieve the same rendering with <code>setText</code> as with <code>setUrl</code>?</p>
  
  <p>I'm creating the <code>Browser</code> with <code>SWT.NONE</code>, since I do not want to force users to install Safari or Firefox.</p>
  
  <p>This is the HTML where the problem is reproducible:</p>
  
  <pre><code>&lt;!doctype html&gt;&lt;html&gt;&lt;head&gt;
  &lt;style type="text/css"&gt;
      div:nth-child(2n) { background-color: #f00; }
  &lt;/style&gt;
  &lt;/head&gt;&lt;body&gt;
      &lt;div&gt;1&lt;/div&gt;
      &lt;div&gt;2&lt;/div&gt;
      &lt;div&gt;3&lt;/div&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>