layout/reftests/margin-collapsing/caption-child-1.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 <!DOCTYPE html>
     2 <html>
     3 <head>
     4 <style type="text/css">
     5 .separator {
     6  height: 20px;
     7  background-color: blue;
     8 }
     9 #table {
    10  display: table;
    11  width: 100px;
    12 }
    13 #caption {
    14  display: table-caption;
    15  background-color: yellow;
    16 }
    17 #block {
    18  height: 20px;
    19  margin: 20px 0;
    20  background-color: blue;
    21 }
    22 </style>
    23 </head>
    24 <body>
    25 <div class="separator"></div>
    26 <div id="table">
    27  <div id="caption">
    28   <div id="block"></div>
    29  </div>
    30 </div>
    31 <div class="separator"></div>
    32 </body>
    33 </html>

mercurial