1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/flexbox/flexbox-dyn-changeFrameWidth-1.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,33 @@ 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 reflow nested flex containers sufficiently when 1.11 + the window (or the iframe we're inside of) is horizontally resized. 1.12 + 1.13 + This test should end up rendering as a lime square, 100px by 100px. 1.14 +--> 1.15 +<html xmlns="http://www.w3.org/1999/xhtml" 1.16 + class="reftest-wait"> 1.17 + <head> 1.18 + <style> 1.19 + #frame { 1.20 + width: 400px; 1.21 + height: 200px; 1.22 + border: 0; 1.23 + } 1.24 + </style> 1.25 + <script> 1.26 + function tweak() { 1.27 + document.getElementById("frame").style.width = "100px"; 1.28 + document.documentElement.removeAttribute("class"); 1.29 + } 1.30 + window.addEventListener("MozReftestInvalidate", tweak, false); 1.31 + </script> 1.32 + </head> 1.33 + <body> 1.34 + <iframe id="frame" src="flexbox-dyn-changeFrameWidth-1-iframe.html"></iframe> 1.35 + </body> 1.36 +</html>