layout/reftests/flexbox/flexbox-dyn-changeFrameWidth-2.xhtml

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     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 don't end up with the effects of an intermediate
     8     "measuring" reflow left over, when we resize a window that contains a
     9     vertical flex container with a fixed-height flex item.
    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: 400px;
    19         height: 200px;
    20         border: 0;
    21       }
    22     </style>
    23     <script>
    24       function tweak() {
    25         document.getElementById("frame").style.width = "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-2-iframe.html"></iframe>
    33   </body>
    34 </html>

mercurial