| <!DOCTYPE html> |
| <html> |
| <head> |
| <style> |
| td { |
| border: 1px solid gray; |
| } |
| input { |
| visibility: hidden; |
| } |
| </style> |
| </head> |
| <body> |
| <p>webkit.org/b/115432: There should be no extra space between the top of the text and the top of the table.</p> |
| <form> |
| <table> |
| <tr> |
| <td>Text</td> |
| <td>Text<br>Text<br>Text</td> |
| </tr> |
| </table> |
| </form> |
| <script> |
| var cells = document.getElementsByTagName("td"); |
| // Ensure layout has run so that we properly invalidate. |
| cells[0].offsetLeft; |
| for (var i = 0; i < cells.length; ++i) |
| cells[i].style.verticalAlign = "baseline"; |
| cells[0].offsetLeft; |
| </script> |
| </body> |
| </html> |