Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / block / float / float-inserted-into-clean-line.html
blob2a0a708514d96f36f903a939844049ccb92eb00b
1 <!-- <!DOCTYPE html> - This test is run in quirks mode. -->
2 <style>
3 .float { float: right; }
4 </style>
5 <script>
6 var docElement = document.documentElement;
7 var text;
8 function runTest() {
9 docElement.appendChild(foo);
10 style = document.createElementNS("http://www.w3.org/TR/REC-html40", "style");
11 docElement.appendChild(style);
12 text = document.createTextNode("uuO,*MkR41 KE? , Wm?_8)}ej 0r{H!= ^.Iw O T49dffjdsk fkdsljfdk jfdksjfkdlf jfklds fjkdf fjklsdf ksdfjdksfjkd jdksla djskld sjakdj sklaK{7cM:} 1HoYNYgw+ lA:UVeG6~%~Q G_Z: ,\x7fNxwr ~~d&! ILugpV4yR 7Q=zX iFhmm2 ;WSubT4o0 t` -F=. qsDYER U6Pm({x g=Q O, .V Au : ] ;/X57^{ k14[1p%{))kT-X. 1h%{T J$%~ u@ hHcWwy`CO($3Dd");
13 docElement.appendChild(text);
14 form = document.createElement("form");
15 form.setAttribute("class", "float");
16 docElement.appendChild(form);
17 setTimeout("attemptToCrash()");
19 document.addEventListener("DOMContentLoaded", runTest, false);
20 function attemptToCrash() {
21 caption = document.createElement("figcaption");
22 caption.setAttribute("class", "float");
23 style.appendChild(caption);
24 span = document.createElement("span");
25 foo.parentNode.appendChild(span);
27 </script>
28 <foo id="foo" data-expected-height=0></foo>
29 <p>crbug.com/449986: A float inserted into a clean line should dirty the line otherwise it may avoid layout. </p>
30 <div id="result">Test passes if it does not crash.</div>
31 <script src="../../../resources/check-layout.js"></script>
32 <script>
33 checkLayout("foo", document.getElementById("result"));
34 </script>