ladybird/Tests/LibWeb/Layout/input/table/vertical-align-middle-vs-top.html
Andreas Kling 47f5da7523 LibWeb: Actually, don't align all inline content to alphabetic baseline
This essentially reverts 1b46a52cfc
and adds more tests.

The reverted change was an incorrect workaround for the real issue,
which was that we weren't creating anonymous wrapper boxes around inline
children of table-cell boxes.

Now that this has been fixed, we can go back to aligning text properly.
2025-02-25 23:55:36 +01:00

35 lines
477 B
HTML

<!DOCTYPE html><style>
* {
outline: 1px solid black;
}
body {
font-family: monospace;
font-size: 100px;
}
.green {
color: green;
}
.red {
color: red;
}
table {
padding: 0;
margin: 0;
border: none;
}
tr {
padding: 0;
margin: 0;
border: none;
}
td {
padding: 0;
margin: 0;
border: none;
vertical-align: middle;
}
span {
vertical-align: top;
background: orange;
}
</style><body><main><table><tr><td>foo<span>bar