diff options
author | Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com> | 2023-05-03 15:26:01 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-03 15:03:56 +0200 |
commit | 09d698e0a0bdac1ee9b9666d7dc9b46386988e94 (patch) | |
tree | d768ea24088fd39a0f287935be12894fe2b338c9 /Tests/LibWeb/Layout/input/table | |
parent | 4d971b5bc59f56e7492a15b0aa08f73537293e6a (diff) | |
download | serenity-09d698e0a0bdac1ee9b9666d7dc9b46386988e94.zip |
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.
Diffstat (limited to 'Tests/LibWeb/Layout/input/table')
-rw-r--r-- | Tests/LibWeb/Layout/input/table/auto-margins.html | 22 | ||||
-rw-r--r-- | Tests/LibWeb/Layout/input/table/fixed-margins.html | 22 |
2 files changed, 44 insertions, 0 deletions
diff --git a/Tests/LibWeb/Layout/input/table/auto-margins.html b/Tests/LibWeb/Layout/input/table/auto-margins.html new file mode 100644 index 0000000000..ad2e96be46 --- /dev/null +++ b/Tests/LibWeb/Layout/input/table/auto-margins.html @@ -0,0 +1,22 @@ +<style> +* { + font-family: 'SerenitySans'; +} + +.wrapper { + background-color: mediumturquoise; +} + +.box { + display: table; + background-color: orange; + margin-left: auto; + margin-right: auto; +} + +.cell { + display: table-cell; +} +</style> +<div class="wrapper"><div class="box"><div class="cell">DaTa DisplaYiNg CSS WeBpaGE ScReEn +</div></div></div>
\ No newline at end of file diff --git a/Tests/LibWeb/Layout/input/table/fixed-margins.html b/Tests/LibWeb/Layout/input/table/fixed-margins.html new file mode 100644 index 0000000000..48b7d5a538 --- /dev/null +++ b/Tests/LibWeb/Layout/input/table/fixed-margins.html @@ -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>
\ No newline at end of file |