diff options
author | martinfalisse <martinmotteditfalisse@gmail.com> | 2023-04-05 18:21:40 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-07 10:42:26 +0200 |
commit | c839c51b0b2a1ccf30734147995fd94be2e30d0e (patch) | |
tree | 217d9a988c9703a71351435c00b5bcef099a88ed /Tests | |
parent | 1440845aadaa457a00558579fb2b79c833da1ebf (diff) | |
download | serenity-c839c51b0b2a1ccf30734147995fd94be2e30d0e.zip |
LibWeb: Use max-width property in table formatting
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/LibWeb/Layout/expected/table/size.txt | 16 | ||||
-rw-r--r-- | Tests/LibWeb/Layout/input/table/size.html | 17 |
2 files changed, 33 insertions, 0 deletions
diff --git a/Tests/LibWeb/Layout/expected/table/size.txt b/Tests/LibWeb/Layout/expected/table/size.txt new file mode 100644 index 0000000000..2b7a15a74c --- /dev/null +++ b/Tests/LibWeb/Layout/expected/table/size.txt @@ -0,0 +1,16 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer <html> at (0,0) content-size 800x33.46875 children: not-inline + BlockContainer <body> at (8,8) content-size 784x17.46875 children: not-inline + TableWrapper <(anonymous)> at (350,8) content-size 100x17.46875 children: not-inline + TableBox <div> at (350,8) content-size 100x17.46875 children: not-inline + TableRowBox <(anonymous)> at (350,8) content-size 100x17.46875 children: not-inline + TableCellBox <(anonymous)> at (350,8) content-size 100x17.46875 children: not-inline + BlockContainer <(anonymous)> at (350,8) content-size 100x0 children: inline + TextNode <#text> + BlockContainer <div> at (350,8) content-size 2000x17.46875 children: inline + line 0 width: 6.34375, height: 17.46875, bottom: 17.46875, baseline: 13.53125 + frag 0 from TextNode start: 0, length: 1, rect: [350,8 6.34375x17.46875] + "1" + TextNode <#text> + BlockContainer <(anonymous)> at (350,25.46875) content-size 100x0 children: inline + TextNode <#text> diff --git a/Tests/LibWeb/Layout/input/table/size.html b/Tests/LibWeb/Layout/input/table/size.html new file mode 100644 index 0000000000..59e9e9c6a8 --- /dev/null +++ b/Tests/LibWeb/Layout/input/table/size.html @@ -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>
\ No newline at end of file |