Tests/LibWeb: Fix typo in test

"display: max-content" is not a thing. The test was actually not working
correctly, it just looked like it did. Now it has correct metrics for
the body element.
This commit is contained in:
Andreas Kling 2023-06-16 13:45:09 +02:00
parent b69036970b
commit 1578121dcb
Notes: sideshowbarker 2024-07-17 10:16:43 +09:00
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x136 [BFC] children: not-inline
BlockContainer <body> at (8,8) content-size 784x120 children: not-inline
BlockContainer <div> at (8,8) content-size 784x120 children: inline
BlockContainer <body> at (8,8) content-size 120x120 children: not-inline
BlockContainer <div> at (8,8) content-size 120x120 children: inline
line 0 width: 120, height: 120, bottom: 120, baseline: 120
frag 0 from ImageBox start: 0, length: 0, rect: [8,8 120x120]
ImageBox <img> at (8,8) content-size 120x120 children: not-inline

View file

@ -1,4 +1,4 @@
<!DOCTYPE html><style>
body { display: max-content; }
body { width: max-content; }
img { max-width: 100%; }
</style><body><div><img src="120.png">