title: Cannot display child element
body: <p>I'm a beginner lit-element developer and trying to solve a simple problem.</p>
  
  <p>This is my html page:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
    &lt;head&gt;
      &lt;meta charset="UTF-8" /&gt;
      &lt;title&gt;LitTest&lt;/title&gt;
      &lt;script src="webcomponents/webcomponents-loader.js"&gt;&lt;/script&gt;
      &lt;style&gt;
        html,
        body {
          width: 100%;
          height: 100%;
          padding: 0;
          margin: 0;
        }
      &lt;/style&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;svg id="canvas" style="width: 100%; height: 100%;"&gt;
        &lt;es-postit&gt;&lt;/es-postit&gt;
      &lt;/svg&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And this is the component code:</p>
  
  <p>import { LitElement, html, customElement, css } from "lit-element";</p>
  
  <pre><code>@customElement("es-postit")
  export class PostIt extends LitElement {
    static styles = css`
      rect {
        fill: red;
      }
    `;
  
    render() {
      console.log("rendering element.");
      return html`&lt;rect x="10" y="10" width="210" height="210" /&gt;`;
    }
  }
  </code></pre>
  
  <p>As you can see there's nothing special.  The problem is, I can't see the component on the page. But if I change the index.html to this:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
    &lt;head&gt;
      &lt;meta charset="UTF-8" /&gt;
      &lt;title&gt;LitTest&lt;/title&gt;
      &lt;script src="webcomponents/webcomponents-loader.js"&gt;&lt;/script&gt;
      &lt;style&gt;
        html,
        body {
          width: 100%;
          height: 100%;
          padding: 0;
          margin: 0;
        }
      &lt;/style&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;svg id="canvas" style="width: 100%; height: 100%;"&gt;
        &lt;rect x="10" y="10" width="210" height="210" /&gt;
      &lt;/svg&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>then I can see the rect on the page. Also if I get rid of all the svg related elements and turn them into divs, everything works just fine. Is it something to do with SVG?</p>