1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/flexbox/flexbox-dyn-changeFrameWidth-3.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +<?xml version="1.0" encoding="UTF-8"?> 1.5 +<!-- 1.6 + Any copyright is dedicated to the Public Domain. 1.7 + http://creativecommons.org/publicdomain/zero/1.0/ 1.8 +--> 1.9 +<!-- 1.10 + This test checks that we don't end up with the effects of an intermediate 1.11 + "measuring" reflow left over, when we resize a window that contains a 1.12 + vertical flex container with an auto-height flex item. 1.13 + 1.14 + This test should end up rendering as a lime square, 100px by 100px. 1.15 +--> 1.16 +<html xmlns="http://www.w3.org/1999/xhtml" 1.17 + class="reftest-wait"> 1.18 + <head> 1.19 + <style> 1.20 + #frame { 1.21 + width: 400px; 1.22 + height: 200px; 1.23 + border: 0; 1.24 + } 1.25 + </style> 1.26 + <script> 1.27 + function tweak() { 1.28 + document.getElementById("frame").style.width = "100px"; 1.29 + document.documentElement.removeAttribute("class"); 1.30 + } 1.31 + window.addEventListener("MozReftestInvalidate", tweak, false); 1.32 + </script> 1.33 + </head> 1.34 + <body> 1.35 + <iframe id="frame" src="flexbox-dyn-changeFrameWidth-3-iframe.html"></iframe> 1.36 + </body> 1.37 +</html>