tor-browser

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

inline-replaced-width-017.xht (1920B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 
      3 <html xmlns="http://www.w3.org/1999/xhtml">
      4 
      5  <head>
      6 
      7   <title>CSS test: width - inline replaced element and min-height</title>
      8 
      9   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
     10   <!--
     11   Credits must go to Kang-Hao (Kenny) Lu for posting a message
     12   on a closely related issue in www-style mailing list.
     13   -->
     14   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" title="10.3.2 Calculating width of inline, replaced elements" />
     15   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" title="10.7 Minimum and maximum heights: 'min-height' and 'max-height'" />
     16   <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
     17   <link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2012Nov/0023.html" title="[css21][css3-box] when only one dimension is specified, replaced element sizing rules are ambiguous and non-interoperable" />
     18 
     19   <meta content="image" name="flags" />
     20   <meta content="The width of an inline replaced element should be re-calculated based on its constrained height (constrained by computed 'min-height' value) and based its intrinsic ratio when it has an intrinsic ratio." name="assert" />
     21 
     22   <style type="text/css"><![CDATA[
     23   div#overlapped-red-reference
     24   {
     25   background-color: red;
     26   height: 100px;
     27   position: absolute;
     28   width: 100px;
     29   z-index: -1;
     30   }
     31 
     32   img
     33   {
     34   min-height: 6.25em;
     35   height: 0em;
     36   width: auto;
     37   }
     38   ]]></style>
     39 
     40  </head>
     41 
     42  <body>
     43 
     44   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     45 
     46   <div id="overlapped-red-reference"></div>
     47 
     48   <div id="overlapping-green-test"><img src="support/swatch-green.png" alt="Image download support must be enabled" /></div>
     49 
     50  </body>
     51 </html>