mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 11:47:34 +00:00
LibWeb: Fix off-by-one in CSS calc() "negate" operation
When negating a number, we should subtract it from 0, not 1. :^)
This commit is contained in:
parent
587c44cfbb
commit
e81d4ca1ac
7 changed files with 38 additions and 12 deletions
5
Tests/LibWeb/Layout/expected/calc-negate-length.txt
Normal file
5
Tests/LibWeb/Layout/expected/calc-negate-length.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x66 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x50 children: not-inline
|
||||
BlockContainer <div.container> at (8,8) content-size 100x50 children: not-inline
|
||||
BlockContainer <div.foo> at (8,8) content-size 99x50 children: not-inline
|
Loading…
Add table
Add a link
Reference in a new issue