tor-browser

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

object--auto-auto--px-pct.html (996B)


      1 <!--
      2     Any copyright is dedicated to the Public Domain.
      3     http://creativecommons.org/publicdomain/zero/1.0/
      4 -->
      5 <html xmlns="http://www.w3.org/1999/xhtml">
      6  <head>
      7 
      8    <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=294086 -->
      9 
     10    <title>Test: width:auto; height:auto; width="70px" height="49%"</title>
     11 
     12    <!--
     13    This testcase checks that the <object> element uses the intrinsic width and
     14    height of the embedded SVG. Since the intrinsic width is 70px and the
     15    intrinsic height is 49%, you should see a blue rectangle 70px wide by 49%
     16    high when viewing this file. You should not see any red.
     17    -->
     18 
     19    <style type="text/css">
     20 
     21 html, body {
     22  padding: 0;
     23  border: 0;
     24  margin: 0;
     25  width: 100%;
     26  height: 100%;
     27 }
     28 
     29 object {
     30  padding: 0;
     31  margin: 50px;
     32  background: red;
     33 }
     34 
     35    </style>
     36  </head>
     37  <body>
     38    <object data="object--auto-auto--px-pct.svg" type="image/svg+xml">
     39      FAIL
     40    </object>
     41  </body>
     42 </html>