Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / style / invalid-font-size.html
blob1049f6034bed855071212f082657e571d5ecfd1d
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../resources/dump-as-markup.js"></script>
5 <div id="test" contenteditable><font size="x">hello</font></div>
6 <script>
8 Markup.description('This tests applying font size to text inside a font element with an invalid size attribute.\n' +
9 'WebKit should not crash and there should be exactly one font element with size="4"')
10 var test = document.getElementById('test');
11 window.getSelection().selectAllChildren(test);
12 document.execCommand('fontSize', false, '4');
13 Markup.dump(test);
15 </script>
16 </body>
17 </html>