1 <?xml version=
"1.0" encoding=
"UTF-8"?>
3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/publicdomain/zero/1.0/
7 This test inserts a new div into some inline content in a flex container.
8 That should split the inline content into two flex items.
10 <html xmlns=
"http://www.w3.org/1999/xhtml"
13 <link rel=
"stylesheet" type=
"text/css" href=
"ahem.css" />
16 var flexbox = document.getElementsByClassName(
"flexbox")[
0];
17 var insertionPoint = flexbox.firstChild.nextSibling.nextSibling;
19 var newDiv = document.createElement(
"div");
20 newDiv.setAttribute(
"class",
"b");
22 flexbox.insertBefore(newDiv, insertionPoint);
24 document.documentElement.removeAttribute(
"class");
27 window.addEventListener(
"MozReftestInvalidate", tweak, false);
30 div { height:
100px; }
38 background: lightgreen;
52 ><div class=
"a"/>text
<i>italic
</i
53 ><div class=
"inflex"/></div>