Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / style / justify-without-enclosing-block.xhtml
bloba450db11022d32c0f7a9017b0437a19ab7f7bdb1
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <style>
6 *{
7 /* Note: applying a text-decoration to the body is necessary to
8 * cause the crash, as is having the document parsed as xhtml.
9 */
10 text-decoration:underline;
12 </style>
13 <script>
14 function go() {
15 if (window.testRunner)
16 testRunner.dumpAsText();
17 document.execCommand("SelectAll");
18 document.execCommand("JustifyRight");
19 document.execCommand("JustifyNone");
21 </script>
22 </head>
23 <body onload="go()" contenteditable="true">
24 execCommand("JustifyNone") was crashing inside WebCore::ApplyStyleCommand::applyBlockStyle.<br/>
25 See https://bugs.webkit.org/show_bug.cgi?id=51639<br/>
26 The test has passed if it does not crash.<br/><br/>
27 PASS
28 </body>
29 </html>