1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/flexbox/flexbox-inlinecontent-horiz-5.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,36 @@ 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 removes a run of inline content from a flexbox, which 1.11 + should trigger the removal of its now-empty anonymous flex item. 1.12 +--> 1.13 +<html xmlns="http://www.w3.org/1999/xhtml" 1.14 + class="reftest-wait"> 1.15 + <head> 1.16 + <script> 1.17 + function tweak() { 1.18 + var removeMe = document.getElementsByClassName("flexbox")[0].lastChild; 1.19 + removeMe.parentNode.removeChild(removeMe); 1.20 + document.documentElement.removeAttribute("class"); 1.21 + } 1.22 + window.addEventListener("MozReftestInvalidate", tweak, false); 1.23 + </script> 1.24 + <style> 1.25 + div.flexbox { 1.26 + width: 200px; 1.27 + height: 100px; 1.28 + background: lightgreen; 1.29 + justify-content: space-around; 1.30 + display: flex; 1.31 + } 1.32 + </style> 1.33 + </head> 1.34 + <body> 1.35 + <div class="flexbox">text<div>div</div> 1.36 + REMOVE ME 1.37 + </div> 1.38 + </body> 1.39 +</html>