| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <title>Generated text content in ::before should not crash layout</title> | |
| <link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=61411"> | |
| <style> | |
| div::before { | |
| content: 'PASS'; | |
| display: block; | |
| overflow: hidden; | |
| width: 100px; | |
| height: 100px; | |
| } | |
| </style> | |
| <div></div> | |
| <script> | |
| document.body.offsetTop; | |
| </script> |