Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / first-letter-associated-text-node-crash.html
blobb3f6649741e6fc42853d820419236b3b9dbe8fe1
1 <!doctype html>
3 <style>
4 body:first-letter { position: fixed; float: inherit; }
5 #target { display: none; }
6 </style>
8 <body>
9 <div id="target">
10 Test passes if it does not CRASH.
11 <span id="line"></span>
12 </div>
13 </body>
15 <script>
16 if (window.testRunner)
17 testRunner.dumpAsText();
19 document.body.insertBefore(target, document.body.lastChild);
21 target.addEventListener('DOMNodeRemovedFromDocument', function() {
22 var range = document.createRange();
23 range.selectNodeContents(target);
24 document.body.appendChild(range.extractContents());
26 target.insertAdjacentHTML('beforebegin', 'A');
28 target.offsetTop;
29 target.parentElement.normalize();
30 }, false);
32 document.write('Text');
34 line.getBoundingClientRect();
35 document.body.appendChild(target);
36 </script>