Files
rust_browser/tests/goldens/fixtures/094-table-vertical-align.html
Zachary D. Rowitsch 72012ca354
All checks were successful
ci / fast (linux) (push) Successful in 2m54s
Fix table cell vertical-align and add HTML border attribute support
- Fix vertical-align in table cells: capture natural content height before
  applying explicit CSS height, so vertical offset is calculated correctly
- Add border attribute support for <table> elements (sets border on table)
- Propagate table border attribute to <td>/<th> cells (1px border when set)
- Add golden test 094 for table vertical-align

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 02:41:14 -05:00

19 lines
373 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
table { border: 1px solid black; border-spacing: 0; }
td { border: 1px solid gray; height: 80px; width: 100px; }
</style>
</head>
<body>
<table>
<tr>
<td style="vertical-align: top;">Top</td>
<td style="vertical-align: middle;">Middle</td>
<td style="vertical-align: bottom;">Bottom</td>
</tr>
</table>
</body>
</html>