| <!DOCTYPE html> |
| <html> |
| <head> |
| <style> |
| .capitalize:first-letter { |
| text-transform: uppercase; |
| } |
| .block { |
| display: block; |
| } |
| </style> |
| <script> |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| </script> |
| </head> |
| <body> |
| <p> |
| Test case for <a href="https://bugs.webkit.org/show_bug.cgi?id=34641">Bug 34641</a>. |
| </p> |
| |
| <div class="capitalize"><input class="block" type="submit"></div> |
| <div class="capitalize"><select class="block"><option>foo</select></div> |
| <div class="capitalize"><input class="block" type="text" value="foo"></div> |
| <div class="capitalize"><input class="block" type="checkbox"></div> |
| <div class="capitalize"><input class="block" type="radio"></div> |
| <div class="capitalize"><input class="block" type="file"></div> |
| <div class="capitalize"><textarea class="block"></textarea></div> |
| <div class="capitalize"><video class="block" controls></video></div> |
| <div class="capitalize"><audio class="block" controls></audio></div> |
| <!-- this makes WebKit recalc style --> |
| <style></style> |
| <p>No crash means PASS</p> |
| </body> |
| </html> |