title: Position absolute inside list element
body: <p>I'm trying to position some list's element based on the viewport but they ultimately stick to their parents.</p>
  
  <p>To reproduce the issue, I just need to create a list with an element positioned absolutely :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>body {
    background-color: lightgray;
  }
  
  ul {
    position: absolute;
    top: 50px;
    left: 50px;
    list-style: none;
  }
  
  .element {
    position: absolute;
    top: 0;
    left: 0;
    background-color: red;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul&gt;
    &lt;li&gt;
      &lt;div class="element"&gt;
        &lt;p&gt;
          Element
        &lt;/p&gt;
      &lt;/div&gt;
    &lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>As you can see, the element isn't positioned at the top left of the viewport but, instead, relatively to the <code>ul</code>.</p>
  
  <p>Am I missing something ? Could it be the static position of the <code>li</code> elements ?</p>