layout/reftests/flexbox/flexbox-resizeviewport-1.xhtml

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

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 <!-- Testcase to be sure a flex container gets reflowed properly when its
michael@0 7 iframe changes size. -->
michael@0 8 <html xmlns="http://www.w3.org/1999/xhtml"
michael@0 9 class="reftest-wait">
michael@0 10 <head>
michael@0 11 <style>
michael@0 12 iframe {
michael@0 13 width: 75px;
michael@0 14 height: 75px;
michael@0 15 }
michael@0 16 </style>
michael@0 17 <script>
michael@0 18 function setElementPropertyTo(id, propertyName, propertyValue) {
michael@0 19 var elem = document.getElementById(id);
michael@0 20 elem.style[propertyName] = propertyValue;
michael@0 21 }
michael@0 22
michael@0 23 function tweak() {
michael@0 24 setElementPropertyTo("a", "width", "50px");
michael@0 25 setElementPropertyTo("b", "width", "125px");
michael@0 26 setElementPropertyTo("c", "height", "50px");
michael@0 27 setElementPropertyTo("d", "height", "125px");
michael@0 28 document.documentElement.removeAttribute("class");
michael@0 29 }
michael@0 30 window.addEventListener("MozReftestInvalidate", tweak, false);
michael@0 31 </script>
michael@0 32 </head>
michael@0 33 <body>
michael@0 34 <iframe id="a" src="flexbox-resizeviewport-1-helper.html"/>
michael@0 35 <iframe id="b" src="flexbox-resizeviewport-1-helper.html"/>
michael@0 36 <br/>
michael@0 37 <iframe id="c" src="flexbox-resizeviewport-1-helper.html"/>
michael@0 38 <iframe id="d" src="flexbox-resizeviewport-1-helper.html"/>
michael@0 39 </body>
michael@0 40 </html>

mercurial