layout/reftests/flexbox/flexbox-dyn-changeFrameWidth-4.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

michael@0 1 <?xml version="1.0" encoding="UTF-8"?>
michael@0 2 <!--
michael@0 3 Any copyright is dedicated to the Public Domain.
michael@0 4 http://creativecommons.org/publicdomain/zero/1.0/
michael@0 5 -->
michael@0 6 <!--
michael@0 7 This test checks that we sufficiently reflow abspos flex containers that
michael@0 8 have top:0;bottom:0 (which ends up effectively being like height:100%)
michael@0 9 the window (or the iframe we're inside of) is vertically resized.
michael@0 10
michael@0 11 This test should end up rendering as a lime square, 100px by 100px.
michael@0 12 -->
michael@0 13 <html xmlns="http://www.w3.org/1999/xhtml"
michael@0 14 class="reftest-wait">
michael@0 15 <head>
michael@0 16 <style>
michael@0 17 #frame {
michael@0 18 width: 100px;
michael@0 19 height: 50px;
michael@0 20 border: 0;
michael@0 21 }
michael@0 22 </style>
michael@0 23 <script>
michael@0 24 function tweak() {
michael@0 25 document.getElementById("frame").style.height = "100px";
michael@0 26 document.documentElement.removeAttribute("class");
michael@0 27 }
michael@0 28 window.addEventListener("MozReftestInvalidate", tweak, false);
michael@0 29 </script>
michael@0 30 </head>
michael@0 31 <body>
michael@0 32 <iframe id="frame" src="flexbox-dyn-changeFrameWidth-4-iframe.html"></iframe>
michael@0 33 </body>
michael@0 34 </html>

mercurial