tor-browser

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

block-replaced-width-003.xht (1798B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg">
      3     <head>
      4         <title>CSS Test: Block replaced elements and 'auto' specified for 'margin-left', 'margin-right' and 'height'</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#block-replaced-width" />
      7         <meta name="flags" content="nonHTML svg" />
      8         <meta name="assert" content="Computed value of 'auto' for 'margin-left' or margin-right' on block replaced elements becomes a used value of '0'. The 'width' is (used height) * (intrinsic ratio) if there is no intrinsic width but there is intrinsic height and ratio." />
      9         <style type="text/css">
     10             #div1
     11             {
     12                 border: solid black;
     13                 height: 3in;
     14                 width: 3in;
     15             }
     16             svg
     17             {
     18                 display: block;
     19                 height: 100px;
     20                 margin-left: auto;
     21                 margin-right: auto;
     22             }
     23             div div
     24             {
     25                 background: orange;
     26                 height: 100px;
     27                 width: 200px;
     28             }
     29         </style>
     30     </head>
     31     <body>
     32         <p>Test passes if the blue and orange boxes below are the same width, and the blue box is in the upper-left corner of the black box.</p>
     33         <div id="div1">
     34             <svg:svg version="1.1" height="50" baseProfile="full">
     35                 <svg:rect x="0" y="0" width="200" height="100" fill="blue" />
     36             </svg:svg>
     37             <div></div>
     38         </div>
     39     </body>
     40 </html>