1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:27:35 +00:00

LibWeb: Zero out margins if width is not 'auto' in BFC's compute_width

Reverse the condition to satisfy the spec comment. Probably a typo.
A 3 year old typo! :^)
This commit is contained in:
0GreenClover0 2023-05-05 02:58:49 +02:00 committed by Andreas Kling
parent 0d808f6dcb
commit 8bb2663a22
3 changed files with 22 additions and 1 deletions

View file

@ -0,0 +1,6 @@
<!doctype html><style>
* { border: 1px solid black; font-family: 'SerenitySans'; }
body { position: absolute; }
#container { width: 100px; }
#child { width: 50px; padding-left: 60px; padding-right: 60px; margin-right: auto; margin-left: auto; }
</style><body><div id="container"><div id="child">well hello friends</div>