tor-browser

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

block-non-replaced-width-006.xht (1452B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3     <head>
      4         <title>CSS Test: Solving width for block-level non-replaced elements in normal flow with multiple properties with 'auto' values</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#blockwidth" />
      7 		<link rel="match" href="block-non-replaced-width-005-ref.xht" />
      8 
      9         <meta name="assert" content="If 'width' is set to 'auto', any other 'auto' values become '0' and the 'width' is computed based on remaining space which includes any negative width." />
     10         <style type="text/css">
     11             body
     12             {
     13                 margin: 0;
     14             }
     15             #div1
     16             {
     17                 background: red;
     18                 width: 100%;
     19             }
     20             div div
     21             {
     22                 background-color: green;
     23                 border: 10px solid green;
     24                 margin: 0 auto;
     25                 padding: 0;
     26                 height: 20px;
     27                 width: auto;
     28             }
     29         </style>
     30     </head>
     31     <body>
     32         <p>Test passes if a filled green rectangle spans the entire width of the page and if there is <strong>no red</strong>.</p>
     33         <div id="div1">
     34             <div></div>
     35         </div>
     36     </body>
     37 </html>