title: simulate background-size:cover on <video> or <img>
body: <p>How can I simulate the functionality of <code>background-size:cover</code> on an html element like <code>&lt;video&gt;</code> or <code>&lt;img&gt;</code>?</p>
  
  <p>I'd like it to work like</p>
  
  <pre><code>background-size: cover;
  background-position: center center;
  </code></pre>