tor-browser

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

white-space-collapsing-breaks-001.xht (1152B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3  <head>
      4   <title>CSS Test: Line Breaking in Collapsed White Space</title>
      5   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/"/>
      6   <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-model"/>
      7   <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-1"/>
      8   <link rel="match" href="white-space-collapsing-breaks-001-ref.xht"/>
      9   <meta name="assert" content="Line break opportunities are determined before
     10     white space collapsing."/>
     11   <style type="text/css">
     12     .control {
     13       line-height: 1;
     14       height: 2em;
     15       background: red;
     16     }
     17     .cover {
     18       color: green;
     19       background: green;
     20     }
     21     .constraint {
     22       width: 0;
     23     }
     24     .nobr { white-space: nowrap; }
     25   </style>
     26 
     27  </head>
     28  <body>
     29   <p>There must be a green box below and no red.</p>
     30   <div class="control">
     31     <div class="cover">
     32       <div class="constraint">
     33         <span class="nobr">AA </span> BB
     34       </div>
     35     </div>
     36   </div>
     37  </body>
     38 </html>