tor-browser

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

block-formatting-contexts-010.xht (1394B)


      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: Inline-block elements establish a new block formatting context</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 -->
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting" />
      8 		<link rel="match" href="block-formatting-contexts-008-ref.xht" />
      9 
     10         <meta name="assert" content="Elements defined as inline-blocks establish a new block formatting context." />
     11 		<style type="text/css"><![CDATA[
     12             span#block-formatting-context
     13             {
     14 	            border: black solid medium;
     15     	        display: inline-block;
     16         	    height: 200px;
     17 	            width: 200px;
     18             }
     19 
     20 			span.block-descendant
     21 			{
     22 				background-color: blue;
     23 				display: block;
     24 				height: 25%;
     25 				width: 100%;
     26 			}
     27 		]]></style>
     28     </head>
     29     <body>
     30         <p>Test passes if the upper-half of the square is blue.</p>
     31 		<div>
     32 			<span id="block-formatting-context">
     33 				<span class="block-descendant"></span>
     34 				<span class="block-descendant"></span>
     35 			</span>
     36 		</div>
     37 
     38     </body>
     39 </html>