layout/reftests/flexbox/flexbox-basic-canvas-vert-2.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/flexbox/flexbox-basic-canvas-vert-2.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,36 @@
     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 +     This test checks that a canvas element with "min-height: min-content"
    1.11 +     and a huge specified "height" ends up being shrinkable. (In particular,
    1.12 +     the large "height" value shouldn't influence the min-content height).
    1.13 +-->
    1.14 +<html xmlns="http://www.w3.org/1999/xhtml">
    1.15 +  <head>
    1.16 +    <style>
    1.17 +      div.flexbox {
    1.18 +        height: 50px;
    1.19 +        width: 50px;
    1.20 +        border: 2px dotted black;
    1.21 +        display: flex;
    1.22 +        flex-direction: column;
    1.23 +      }
    1.24 +      canvas {
    1.25 +        width: 50px;
    1.26 +        height: 1000px;
    1.27 +        background: purple;
    1.28 +        /* min-height: min-content isn't supported yet (bug 852367), but we'd
    1.29 +           like this to work when it is supported. */
    1.30 +        min-height: -moz-min-content;
    1.31 +      }
    1.32 +    </style>
    1.33 +  </head>
    1.34 +  <body>
    1.35 +    <div class="flexbox">
    1.36 +      <canvas/>
    1.37 +    </div>
    1.38 +  </body>
    1.39 +</html>

mercurial