tor-browser

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

white-space-nowrap-attribute-001.xht (1534B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3     <head>
      4         <title>CSS Test: White-space 'nowrap' vs. 'nowrap' attribute</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-prop" />
      7         <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-property"/>
      8         <link rel="match" href="white-space-generated-content-before-001-ref.xht" />
      9         <meta name="assert" content="The 'nowrap' attribute and 'white-space: nowrap' assignment behave the same way with respect to white space." />
     10         <style type="text/css">
     11             div, td
     12             {
     13                 width: 2in;
     14             }
     15             div
     16             {
     17                 white-space: nowrap;
     18             }
     19             table
     20             {
     21                 border-spacing: 0;
     22             }
     23             td
     24             {
     25                 padding: 0;
     26             }
     27        </style>
     28     </head>
     29     <body>
     30         <p>Test passes if the two lines below have the exact same spacing.</p>
     31         <div>  The   spacing  on      these         two  sentences need to be the    same!  </div>
     32         <table cellspacing="0">
     33             <tr>
     34                 <td nowrap="nowrap">  The   spacing  on      these         two  sentences need to be the    same!  </td>
     35             </tr>
     36         </table>
     37     </body>
     38 </html>