1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/flexbox/flexbox-inlinecontent-horiz-3c.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 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 inserts a some inline content in a flex container, just after a 1.11 + stretch of existing inline content. The new content should be incorporated 1.12 + into the same anonymous flex item as the existing content. 1.13 +--> 1.14 +<html xmlns="http://www.w3.org/1999/xhtml" 1.15 + class="reftest-wait"> 1.16 + <head> 1.17 + <link rel="stylesheet" type="text/css" href="ahem.css" /> 1.18 + <script> 1.19 + function tweak() { 1.20 + var newInlineContent = document.createTextNode("mno pqr stu"); 1.21 + 1.22 + var flexbox = document.getElementById("flexbox"); 1.23 + flexbox.insertBefore(newInlineContent, null); 1.24 + 1.25 + document.documentElement.removeAttribute("class"); 1.26 + } 1.27 + 1.28 + window.addEventListener("MozReftestInvalidate", tweak, false); 1.29 + </script> 1.30 + <style> 1.31 + div#flexbox { 1.32 + width: 100px; 1.33 + display: flex; 1.34 + font: 10px Ahem; 1.35 + } 1.36 + </style> 1.37 + </head> 1.38 + <body> 1.39 + <div id="flexbox">abc def ghi jkl </div> 1.40 + </body> 1.41 +</html>