layout/reftests/abs-pos/table-internal-6-ref.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/abs-pos/table-internal-6-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,68 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +  <head>
     1.7 +    <style>
     1.8 +      table {
     1.9 +        margin: 0;
    1.10 +        padding: 0;
    1.11 +        width: 50px;
    1.12 +        height: 50px;
    1.13 +        border-collapse: collapse;
    1.14 +        background-color: blue;
    1.15 +      }
    1.16 +      td {
    1.17 +        margin: 0;
    1.18 +        padding: 0;
    1.19 +      }
    1.20 +      #rel {
    1.21 +        position: relative;
    1.22 +        margin: 0;
    1.23 +        padding: 0;
    1.24 +      }
    1.25 +      #abs {
    1.26 +        position: absolute;
    1.27 +        margin: 0;
    1.28 +        padding: 0;
    1.29 +        bottom: 25px;
    1.30 +        right: 25px;
    1.31 +        width: 50px;
    1.32 +        height: 50px;
    1.33 +        background-color: green;
    1.34 +      }
    1.35 +      #bottomright {
    1.36 +        position: absolute;
    1.37 +        margin: 0;
    1.38 +        padding: 0;
    1.39 +        bottom: 0;
    1.40 +        right: 0;
    1.41 +        width: 50px;
    1.42 +        height: 50px;
    1.43 +        overflow: visible;
    1.44 +        background-color: red;
    1.45 +      }
    1.46 +    </style>
    1.47 +  </head>
    1.48 +  <body>
    1.49 +    The green square should not overlap the blue square.
    1.50 +    <div id="bottomright">
    1.51 +      <table>
    1.52 +        <tr>
    1.53 +          <td></td>
    1.54 +          <td></td>
    1.55 +        </tr>
    1.56 +        <tr style="height: 100%">
    1.57 +          <td></td>
    1.58 +          <td></td>
    1.59 +        </tr>
    1.60 +        <tr>
    1.61 +          <td>
    1.62 +            <div id="rel">
    1.63 +              <div id="abs"></div>
    1.64 +            </div>
    1.65 +          </td>
    1.66 +          <td></td>
    1.67 +        </tr>
    1.68 +      </table>
    1.69 +    </div>
    1.70 +  </body>
    1.71 +</html>

mercurial