<!doctype html><!-- webkit-test-runner [ AspectRatioOfImgFromWidthAndHeightEnabled=true ] -->
<title>div with content style's width and height attributes are not used to infer aspect-ratio</title>
<link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=201641#c22">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
  video {
    width: 100%;
    max-width: 100px;
    height: auto;
  }
</style>
<body>
<script>
// Create and append a div wi