2 <iframe id=
"frame" srcdoc=
"<style>input { width: 100px; }</style><input id='input' value='add stuff here'></input>"></iframe>
5 testRunner
.dumpAsText();
7 window
.internals
.settings
.setPreferCompositingToLCDTextEnabled(true);
10 var layerTreePreStyleUpdate
= "";
11 var layerTreePostStyleUpdate
= "";
13 document
.getElementById("frame").contentDocument
.getElementById("input").value
=
14 "This is a very long string that will cause overflow";
15 layerTreePreStyleUpdate
= window
.internals
.layerTreeAsText(document
);
17 // Force a style recalc.
18 document
.body
.offsetTop
;
19 layerTreePostStyleUpdate
= window
.internals
.layerTreeAsText(document
);
21 var pre
= document
.createElement('pre');
22 if (layerTreePreStyleUpdate
=== layerTreePostStyleUpdate
)
23 pre
.innerHTML
= "PASS - layer trees are the same.";
25 pre
.innerHTML
= "FAIL - layer trees are not the same.";
26 document
.body
.appendChild(pre
);