zalan@apple.com | 4ec72be | 2015-04-29 21:32:07 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>This tests that simple line layout manages text fragments when they overlap multiple renderers.</title> |
| 5 | <style> |
| 6 | pre { |
| 7 | width: 45px; |
| 8 | word-wrap: break-word; |
| 9 | white-space: pre-wrap; |
| 10 | } |
| 11 | </style> |
| 12 | </head> |
| 13 | <body> |
| 14 | The test passes if it does not hang or crash. |
| 15 | <pre id=container></pre> |
| 16 | <script> |
| 17 | var container = document.getElementById("container"); |
| 18 | container.appendChild(document.createTextNode("A foo")); |
| 19 | container.appendChild(document.createTextNode("bar foobar")); |
| 20 | document.body.offsetWidth; |
| 21 | </script> |
| 22 | </body> |
| 23 | </html> |