layout/reftests/flexbox/flexbox-position-absolute-4.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/flexbox/flexbox-position-absolute-4.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,52 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<!--
     1.6 +     Any copyright is dedicated to the Public Domain.
     1.7 +     http://creativecommons.org/publicdomain/zero/1.0/
     1.8 +-->
     1.9 +<!--
    1.10 +     Testcase with absolutely positioned flex container & children.
    1.11 +     The children's positioning is with respect to the flex container.
    1.12 +-->
    1.13 +<html xmlns="http://www.w3.org/1999/xhtml">
    1.14 +  <head>
    1.15 +    <style>
    1.16 +      div.containingBlock {
    1.17 +        top: 15px;
    1.18 +        left: 20px;
    1.19 +        height: 400px;
    1.20 +        position: absolute;
    1.21 +        border: 2px dashed purple;
    1.22 +      }
    1.23 +      .abspos {
    1.24 +        position: absolute;
    1.25 +        left: 5px;
    1.26 +        border: 2px dotted black;
    1.27 +      }
    1.28 +      div.flexbox {
    1.29 +        top: 30px;
    1.30 +        left: 40px;
    1.31 +        width: 200px;
    1.32 +        height: 100px;
    1.33 +        display: flex;
    1.34 +        position: absolute;
    1.35 +        border: 1px solid black;
    1.36 +      }
    1.37 +      div.a {
    1.38 +        flex: 1 0 auto;
    1.39 +        width:  30px;
    1.40 +        height: 100px;
    1.41 +        background: lightgreen;
    1.42 +      }
    1.43 +      div.b {
    1.44 +        flex: 2 0 20px;
    1.45 +        height: 100px;
    1.46 +        background: yellow;
    1.47 +      }
    1.48 +    </style>
    1.49 +  </head>
    1.50 +  <body>
    1.51 +    <div class="containingBlock">
    1.52 +      <div class="flexbox"><div class="a abspos"/><div class="b"/></div>
    1.53 +    </div>
    1.54 +  </body>
    1.55 +</html>

mercurial