layout/reftests/flexbox/flexbox-dyn-changeFrameWidth-4.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 we sufficiently reflow abspos flex containers that
     8     have top:0;bottom:0 (which ends up effectively being like height:100%)
     9     the window (or the iframe we're inside of) is vertically resized.
    11     This test should end up rendering as a lime square, 100px by 100px.
    12 -->
    13 <html xmlns="http://www.w3.org/1999/xhtml"
    14       class="reftest-wait">
    15   <head>
    16     <style>
    17       #frame {
    18         width: 100px;
    19         height: 50px;
    20         border: 0;
    21       }
    22     </style>
    23     <script>
    24       function tweak() {
    25         document.getElementById("frame").style.height = "100px";
    26         document.documentElement.removeAttribute("class");
    27       }
    28       window.addEventListener("MozReftestInvalidate", tweak, false);
    29     </script>
    30   </head>
    31   <body>
    32     <iframe id="frame" src="flexbox-dyn-changeFrameWidth-4-iframe.html"></iframe>
    33   </body>
    34 </html>

mercurial