diff options
-rw-r--r-- | src/css/layout.nim | 2 | ||||
-rw-r--r-- | test/layout/position-absolute-with-relative-inline-parent-offset.color.expected | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/css/layout.nim b/src/css/layout.nim index def840c6..a937a6a2 100644 --- a/src/css/layout.nim +++ b/src/css/layout.nim @@ -1664,8 +1664,6 @@ proc layoutInline(ictx: var InlineContext; fragment: InlineFragment) = x = ictx.lbstate.widthAfterWhitespace, y = ictx.lbstate.offsety ) - if ictx.lbstate.atoms.len > 0: - fragment.state.startOffset.y += ictx.cellHeight ictx.lbstate.size.w += padding.start var state = InlineState(fragment: fragment) if stSplitStart in fragment.splitType and diff --git a/test/layout/position-absolute-with-relative-inline-parent-offset.color.expected b/test/layout/position-absolute-with-relative-inline-parent-offset.color.expected index 1977ba24..61caf322 100644 --- a/test/layout/position-absolute-with-relative-inline-parent-offset.color.expected +++ b/test/layout/position-absolute-with-relative-inline-parent-offset.color.expected @@ -7,10 +7,10 @@ I don't care, but feel free to fix it ;) -test test test testadsfasdf -test test [48;2;255;0;0m2t 2tt[49mest -asdfasd fa[48;2;255;0;0m2d [49m - [48;2;255;0;0m [49m +test test [48;2;255;0;0m2t 2tt[49mestadsfasdf +test test [48;2;255;0;0m2est t[49mest +asdfasd fa[48;2;255;0;0msd [49m + test |