layout/reftests/table-width/percent-basis.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

michael@0 1 <!DOCTYPE HTML>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <title>basis of percentage widths</title>
michael@0 5 <style type="text/css">
michael@0 6
michael@0 7 td { border: 3px inset blue; }
michael@0 8
michael@0 9 </style>
michael@0 10 </head>
michael@0 11 <body>
michael@0 12
michael@0 13 <!--
michael@0 14
michael@0 15 The difference between the border-box width of the table and the width allocated to the columns is:
michael@0 16
michael@0 17 2px = table border-left-width
michael@0 18 9px = table padding-left
michael@0 19 25px = 5 * table border-spacing-x
michael@0 20 5px = table padding-right
michael@0 21 2px = table border-left-width
michael@0 22 =================================
michael@0 23 43px
michael@0 24
michael@0 25 -->
michael@0 26
michael@0 27 <table cellpadding="3" cellspacing="5" border="2" style="padding: 3px 5px 7px 9px">
michael@0 28 <tr>
michael@0 29 <td width="25%">x</td>
michael@0 30 <td width="38">x</td>
michael@0 31 <td><div style="width:38px">x</div></td>
michael@0 32 <td><div style="width:38px">x</div></td>
michael@0 33 </tr>
michael@0 34 </table>
michael@0 35
michael@0 36 <table cellpadding="3" cellspacing="5" border="2" style="padding: 3px 5px 7px 9px" width="243">
michael@0 37 <tr>
michael@0 38 <td width="25%">x</td>
michael@0 39 <td width="38">x</td>
michael@0 40 <td><div style="width:38px">x</div></td>
michael@0 41 <td><div style="width:38px">x</div></td>
michael@0 42 </tr>
michael@0 43 </table>
michael@0 44
michael@0 45 <table cellpadding="3" cellspacing="5" border="2" style="padding: 3px 5px 7px 9px" width="443">
michael@0 46 <tr>
michael@0 47 <td width="25%">x</td>
michael@0 48 <td width="38">x</td>
michael@0 49 <td><div style="width:38px">x</div></td>
michael@0 50 <td><div style="width:38px">x</div></td>
michael@0 51 </tr>
michael@0 52 </table>
michael@0 53
michael@0 54 <table cellpadding="3" cellspacing="5" border="2" style="padding: 3px 5px 7px 9px" width="223">
michael@0 55 <tr>
michael@0 56 <td width="25%">x</td>
michael@0 57 <td width="38">x</td>
michael@0 58 <td><div style="width:38px">x</div></td>
michael@0 59 <td><div style="width:38px">x</div></td>
michael@0 60 </tr>
michael@0 61 </table>
michael@0 62
michael@0 63 </body>
michael@0 64 </html>

mercurial