mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +00:00
LibWeb: Add undistributable space to GRID{MIN, MAX} instead of content
Adding undistributable space right before setting the content width is incorrect when it's a percentage. Follow the specification and add it to GRIDMIN and GRIDMAX instead.
This commit is contained in:
parent
a8211abc1e
commit
5bd9f4c31c
7 changed files with 129 additions and 53 deletions
|
@ -0,0 +1,31 @@
|
|||
<style>
|
||||
.left,
|
||||
.right {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.left {
|
||||
width: 15%;
|
||||
}
|
||||
|
||||
.middle {
|
||||
float: left;
|
||||
width: 61%;
|
||||
border-spacing: 2px;
|
||||
}
|
||||
|
||||
.right {
|
||||
width: 24%
|
||||
}
|
||||
</style>
|
||||
<div class="left">A</div>
|
||||
<table class="middle">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>B</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="right">
|
||||
C
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue