layout/reftests/table-width/colspan-percent-distribution-2-ref.html

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <html>
     2 <head>
     3 <style type="text/css">
     4   table { width: 200px;   }
     5   td.a  { background: lightgreen; }
     6   td.b  { background: orange;     }
     7   td.c  { background: yellow;     }
     8   td.d  { background: lightblue;  }
     9   td.e  { background: teal;     }
    11   /* cellspacing=0 cellpadding=0 */
    12   table  { border-spacing: 0 }
    13   td, th { padding: 0 }
    14 </style>
    15 </head>
    16 <body>
    17 <table>
    18   <tr>
    19     <td class="a" style="width: 50%;">x</td>
    20     <td class="a" style="width: 50%;">&nbsp</td>
    21     <td class="b">x</td>
    22   </tr>
    23   <tr>
    24     <td class="c">x</td>
    25     <td class="d">x</td>
    26     <td class="e">x</td>
    27   </tr>
    28 </table>
    29 </body>
    30 </html>

mercurial