Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text / first-letter-bad-line-boxes-crash.html
blob6a1ece0fc6426ff7f7730ed1d09083294f672cf1
1 <!DOCTYPE html>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 var aoScriptElements = document.getElementsByTagName("script");
8 for(var i = 0; i < aoScriptElements.length; i++) {
9 aoScriptElements[i].parentNode.removeChild(aoScriptElements[i]);
12 var DOMNodeRemoved_active = false;
13 var DOMNodeRemoved_fired_count = 0;
14 function DOMNodeRemoved() {
15 if (DOMNodeRemoved_active) return ;
16 DOMNodeRemoved_active = true;
18 document.execCommand('InsertOrderedList',false,false);
20 var oSelection=window.getSelection();
21 oSelection.modify('extend', 'forward', 'sentenceboundary');
23 var oRange = oSelection.getRangeAt(0);
25 var aoElements = document.getElementsByTagName("*");
26 var oParentElement = aoElements[53 % aoElements.length];
27 try { oRange.surroundContents(oParentElement) } catch(e) {}
30 document.execCommand('InsertText',false,'\\\\\\\\\\\\m{VVVVVVVVVVVVVVV<};<WWWWW');
31 DOMNodeRemoved_active = false;
33 document.addEventListener("DOMNodeRemoved", DOMNodeRemoved, true);
35 window.onload = function() {
36 document.designMode = "on";
38 var oSelection=window.getSelection();
39 document.execCommand("SelectAll", false, false)
41 var oRange = oSelection.getRangeAt(0);
42 var oInsertedElement = document.getElementById('textarea');
43 oRange.insertNode(oInsertedElement);
45 var oRange = oSelection.getRangeAt(0);
46 var oParentElement = document.getElementById('br');
47 try { oRange.surroundContents(oParentElement) } catch (e) {}
49 var oRange = oSelection.getRangeAt(0);
50 var oInsertedElement = document.createElementNS('http://www.w3.org/2000/svg', 'view');
51 oRange.insertNode(oInsertedElement);
53 var oSelection = window.getSelection();
54 document.execCommand("SelectAll", false, false)
55 oSelection.collapseToStart();
57 document.execCommand('Outdent',false,false);
58 document.execCommand('Undo',false,false);
60 var aoElements = document.getElementsByTagName("*");
61 var oElement = aoElements[30];
62 try { oElement.outerHTML = ""; } catch (e) {}
64 var oRange = oSelection.getRangeAt(0);
65 var oParentElement = aoElements[24];
66 oRange.surroundContents(oParentElement);
68 </script>
70 <style>
71 * {
72 -webkit-appearance: media-volume-slider-container;
73 direction: rtl;
75 .CLASS3 { font-style: oblique; }
76 .CLASS11 { display: inherit; }
77 *:first-letter { color: green; }
78 </style>
80 <head>
81 <meta />
82 </head>
84 <body class="CLASS3">
85 <div>
86 <br id='br'/>
87 <button>
88 <table>
89 <caption></caption>
90 <col/>
91 </table>
92 </button>
93 <q class="CLASS11">
94 <textarea class="CLASS11"></textarea>
95 </option>
96 </optgroup>
97 </select>
98 <svg>
99 <filter></filter>
100 <radialGradient>
101 <title></title>
102 </radialGradient>
103 </svg>
104 <em></em>
105 <dfn></dfn>
106 </div>
107 <h3>
108 <textarea id="textarea"></textarea>
109 <svg>
110 <symbol>
111 <mask></mask>
112 <use>
113 <animateTransform>
114 <metadata>
115 </symbol>
118 <pattern></pattern>
119 </g>
120 </g>
121 </svg>
122 Text
123 <svg class="CLASS11">
124 <cursor></cursor>
125 <g></g>
126 <linearGradient></linearGradient>
127 <polygon</polygon>
128 <foreignObject></foreignObject>
129 <polyline></polyline>
130 Test passes if it does not CRASH.