| <!-- webkit-test-runner [ InlineFormattingContextIntegrationEnabled=false ] --> |
| <html> |
| <head> |
| <title>This test that we don't crash on a null text node with marker on it.</title> |
| <style> |
| div:before { |
| content: "foobar"; |
| display: table; |
| } |
| </style> |
| </head> |
| <body> |
| <div>Pass if no crash or assert.</div> |
| <script> |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| |
| if (window.internals) { |
| var findOptions = ['CaseInsensitive', 'AtWordStarts', 'TreatMedialCapitalAsWordStart', 'WrapAround']; |
| internals.countMatchesForText('assert', findOptions, 'mark'); |
| } |
| |
| document.body.offsetHeight; |
| </script> |
| </body> |
| </html> |