mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
LibWeb: Exclude table-wrapper margins from table available width
Table should not take up more width than is available inside wrapper after margins are taken in account.
This commit is contained in:
parent
4d971b5bc5
commit
09d698e0a0
5 changed files with 94 additions and 1 deletions
22
Tests/LibWeb/Layout/input/table/fixed-margins.html
Normal file
22
Tests/LibWeb/Layout/input/table/fixed-margins.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<style>
|
||||
* {
|
||||
font-family: 'SerenitySans';
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
background-color: mediumturquoise;
|
||||
}
|
||||
|
||||
.box {
|
||||
display: table;
|
||||
background-color: orange;
|
||||
margin-left: 100px;
|
||||
margin-right: 100px;
|
||||
}
|
||||
|
||||
.cell {
|
||||
display: table-cell;
|
||||
}
|
||||
</style>
|
||||
<div class="wrapper"><div class="box"><div class="cell">DaTa DisplaYiNg CSS WeBpaGE ScReEn OF aR AddITioN COmmOnLY To AdJuSt PRiCiNG sTYLiNG ceLL oF TAbLeS
|
||||
</div></div></div>
|
Loading…
Add table
Add a link
Reference in a new issue