Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / first-letter-selection-crash.html
blobf19dfe9ea03759b42df9603bcce4b892dc332d09
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <style>
5 #test2:first-letter { display: block; }
6 </style>
7 <script>
8 if (window.testRunner)
9 testRunner.dumpAsText();
11 window.onload = function() {
12 test1 = document.createElement('div');
13 document.body.appendChild(test1);
14 test2 = document.createElement('div');
15 test2.setAttribute('id', 'test2');
16 test2.appendChild(document.createTextNode('aaa'));
17 test2.style.display = 'inline-block';
18 test1.appendChild(test2);
19 test1.appendChild(document.createTextNode('a'));
20 document.execCommand('selectall');
21 document.body.offsetTop;
22 document.styleSheets[0].insertRule("#test2 { text-transform: uppercase }", 0);
23 document.body.offsetTop;
24 document.body.innerHTML = "PASS";
26 </script>
27 </body>
28 </html>