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

mercurial