mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
LibWeb: Use max-width property in table formatting
This commit is contained in:
parent
1440845aad
commit
c839c51b0b
3 changed files with 35 additions and 0 deletions
17
Tests/LibWeb/Layout/input/table/size.html
Normal file
17
Tests/LibWeb/Layout/input/table/size.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<style>
|
||||
* {
|
||||
font-family: 'SerenitySans';
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- Should be container-like, with margins on either side and middle aligned -->
|
||||
<div style="
|
||||
display: table;
|
||||
max-width: 100px;
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
table-layout: fixed;
|
||||
background-color: lightblue;
|
||||
">
|
||||
<div style="width: 2000px">1</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue