tor-browser

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

table-anonymous-text-indent.xht (947B)


      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   <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/>
      5   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes"/>
      6   <link rel="match" href="reference/table-anonymous-text-indent-ref.xht"/>
      7   <meta name="flags" content='dom'/>
      8   <script type="text/javascript"><![CDATA[
      9     function doTest() {
     10       var t = document.getElementById("target");
     11       t.style.textIndent = '20px';
     12     }
     13     ]]></script>
     14   <style><![CDATA[
     15     #target { text-indent: 0; display: table; }
     16     #target > * { display: table-cell; border: 1px solid black; }
     17   ]]></style>
     18 </head>
     19 <body onload="doTest()">
     20   <p>There should be 20px text-indent in the table below.</p>
     21   <div id="target">
     22     <div>First cell</div>
     23     Second cell (no element on purpose)
     24   </div>
     25 </body>
     26 </html>