mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:57:45 +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:
parent
0d808f6dcb
commit
8bb2663a22
3 changed files with 22 additions and 1 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue