title: Why is my position: absolute div placed differently in Edge?
body: <p>We are trying to have a badge over the corner of a picture. For this we use a parent <code>&lt;div&gt;</code> as wrapper and a <code>&lt;span&gt;</code> inside. It's working fine so far for Chrome, Firefox, and IE11 but in MS Edge it's not working as expected. It seems like Edge calculates the <code>right:</code> property very different from the others.</p>
  
  <p>Result as expected:<br>
  <a href="https://i.stack.imgur.com/IT9Ia.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IT9Ia.png" alt="enter image description here"></a></p>
  
  <p>Unexpected result:<br>
  <a href="https://i.stack.imgur.com/BERqh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BERqh.png" alt="enter image description here"></a></p>
  
  <p>Here is my code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.parent {
    width: 200px;
    height: 200px;
    border: 1px solid black;
    position: relative;
    overflow: hidden;
  }
  
  .child {
    background-color: #e2001a;
    position: absolute;
    right: -65px;
    width: 220px;
    height: 50px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    padding-left: 100px;
    display: table;
    z-index: 10;
    color: white;
    text-align: center;
    line-height: 1.2;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="parent"&gt;
    &lt;span class="child"&gt;Some cool text&lt;/span&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Am I doing something wrong, or is the Edge behavior very different from the other browsers?  </p>