Files
ladybird/Tests/LibWeb/Layout/input/table/caption-constrained-to-table-width.html
Tim Ledbetter 04ec4c0256 LibWeb: Resolve horizontal box model metrics for table captions
Previously, horizontal padding, border, and margin were not being
resolved for table captions. This was visible in layout tests where
captions with padding showed 0 in the width metrics.
2026-02-03 14:47:51 +01:00

22 lines
417 B
HTML

<!DOCTYPE html>
<style>
.table {
display: table;
border: 2px solid black;
}
.caption {
display: table-caption;
caption-side: bottom;
border: 1px solid black;
}
img {
display: block;
}
</style>
<div class="table">
<img src="../400.png" width="100" height="100">
<div class="caption">Caption text constrained to table width</div>
</div>