Files
rust_browser/tests/goldens/fixtures/203-table-layout-fixed-auto-width.html
Zachary D. Rowitsch 17e93d867b
All checks were successful
ci / fast (linux) (push) Successful in 7m14s
Implement table-layout: fixed CSS property (CSS 2.1 §17.5.2.1)
Column widths are determined by <col> elements and first-row cells only,
ignoring content in subsequent rows for faster, more predictable layout.
Falls back to auto layout when table has no explicit width.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 06:44:39 -05:00

19 lines
312 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
body { margin: 0; }
table { border: 1px solid black; table-layout: fixed; border-spacing: 0; }
td { border: 1px solid gray; padding: 5px; }
</style>
</head>
<body>
<table>
<tr>
<td>Short</td>
<td>Much longer text content here</td>
</tr>
</table>
</body>
</html>