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:
parent
b69036970b
commit
1578121dcb
Notes:
sideshowbarker
2024-07-17 10:16:43 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/1578121dcb Pull-request: https://github.com/SerenityOS/serenity/pull/19418
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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">
|
Loading…
Add table
Reference in a new issue