tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

replaced-element-028.html (635B)


      1 <!DOCTYPE html>
      2 <title>CSS aspect-ratio: img</title>
      3 <link rel="author" title="Google LLC" href="https://www.google.com/">
      4 <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 
      8 <div id="log"></div>
      9 
     10 <img id="test" src="error.png" style="width: 100px; aspect-ratio: 1/5; background: yellow;" alt="Should not be 500px high">
     11 
     12 <script>
     13 function run_test() {
     14  test(function() {
     15    var img = document.getElementById("test");
     16    assert_not_equals(img.offsetHeight, 500);
     17  });
     18 }
     19 onload = run_test;
     20 </script>