mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-24 08:59:50 +00:00
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.
35 lines
477 B
HTML
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
|