| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| body { | |
| display: inline; | |
| height: 1%; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <p> | |
| Test passes if it does not crash. | |
| </p> | |
| <script> | |
| if (window.testRunner) | |
| testRunner.dumpAsText() | |
| var div = document.createElement("div"); | |
| document.body.appendChild(div); | |
| div.offsetWidth; | |
| div.style.display = 'inline'; | |
| div.offsetWidth; | |
| </script> | |
| </body> | |
| </html> |