commit-queue@webkit.org | c9f5a93 | 2011-10-27 13:22:56 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <style type="text/css"> |
| 3 | .parentStyle { position: absolute; } |
| 4 | .parentStyle:first-letter { position: inherit; } |
| 5 | .positionedChildStyle { position: absolute; } |
| 6 | .divChildStyle:first-letter { float: left; } |
| 7 | .divChildStyle:after { float: inherit; content: counter(blah); } |
| 8 | </style> |
| 9 | PASS, if the script does not cause a crash or ASSERT failure |
| 10 | <script> |
| 11 | function runTest() { |
| 12 | parentDiv = document.createElement('div'); |
| 13 | parentDiv.setAttribute('class', 'parentStyle'); |
| 14 | document.documentElement.appendChild(parentDiv); |
| 15 | positionedDiv = document.createElement('div'); |
| 16 | positionedDiv.setAttribute('class', 'positionedChildStyle'); |
| 17 | parentDiv.appendChild(positionedDiv); |
| 18 | divChild = document.createElement('div'); |
| 19 | divChild.setAttribute('class', 'divChildStyle'); |
| 20 | parentDiv.appendChild(divChild); |
rniwa@webkit.org | 38608af | 2012-06-19 07:23:13 +0000 | [diff] [blame] | 21 | if (window.testRunner) |
| 22 | testRunner.dumpAsText(); |
commit-queue@webkit.org | c9f5a93 | 2011-10-27 13:22:56 +0000 | [diff] [blame] | 23 | } |
| 24 | window.onload = runTest; |
| 25 | </script> |
| 26 | </html> |