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

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     3      Any copyright is dedicated to the Public Domain.
     4      http://creativecommons.org/publicdomain/zero/1.0/
     5 -->
     6 <!--
     7      This test checks that an img element with "min-height: min-content"
     8      and a huge specified "height" ends up being shrinkable. (In particular,
     9      the large "height" value shouldn't influence the min-content height).
    10 -->
    11 <html xmlns="http://www.w3.org/1999/xhtml">
    12   <head>
    13     <style>
    14       div.flexbox {
    15         height: 50px;
    16         width: 50px;
    17         border: 2px dotted black;
    18         display: flex;
    19         flex-direction: column;
    20       }
    21       img {
    22         width: 50px;
    23         height: 1000px;
    24         background: purple;
    25         /* min-height: min-content isn't supported yet (bug 852367), but we'd
    26            like this to work when it is supported. */
    27         min-height: -moz-min-content;
    28       }
    29     </style>
    30   </head>
    31   <body>
    32     <div class="flexbox">
    33       <img src="solidblue.png"/>
    34     </div>
    35   </body>
    36 </html>

mercurial