| <!doctype html> |
| <script src="../../resources/testharness.js"></script> |
| <script src="../../resources/testharnessreport.js"></script> |
| <script src="../assert_selection.js"></script> |
| <script> |
| //This is a test case for crbug.com/535510 |
| test(()=> assert_selection( |
| [ |
| '<div contenteditable>', |
| '<table>', |
| '<tbody>', |
| '<td style="display:inline-block">', |
| '<ruby><rt>a|</rt></ruby>', |
| '</td>', |
| '</tbody>', |
| '</table>^', |
| '</div>'], |
| 'InsertParagraph', |
| [ |
| '<div contenteditable>', |
| '<table>', |
| '<tbody>', |
| '<tr><td style="display:inline-block">', |
| '<ruby><rt>a</rt></ruby>', |
| '</td></tr>', |
| '<tr><font size="1">|<br></font></tr>', |
| '</tbody>', |
| '</table>', |
| '</div>' |
| ]), |
| "This InsertParagraph non-table layout item into table layout."); |
| </script> |