aboutsummaryrefslogtreecommitdiffstats
path: root/src/layout
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-24 14:31:22 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-24 14:31:22 +0100
commitea3c192626b4a33d9a6201d82a1b4a1f306f58eb (patch)
tree8277a4d583ef354a4af561252f5b86bab2e7063a /src/layout
parentb5d6c75ae003325b783a831fa54b083a3d1d8b55 (diff)
downloadchawan-ea3c192626b4a33d9a6201d82a1b4a1f306f58eb.tar.gz
layout: make it compile attempt 2
aaaaaa
Diffstat (limited to 'src/layout')
-rw-r--r--src/layout/engine.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index 6ae28e8f..613cd9c3 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -1272,7 +1272,7 @@ proc positionFloats(bctx: var BlockContext) =
func establishesBFC(computed: CSSComputedValues): bool =
return computed{"float"} != FLOAT_NONE or
- computed{"position"} in POSITION_ABSOLUTE or
+ computed{"position"} == POSITION_ABSOLUTE or
computed{"display"} in {DISPLAY_INLINE_BLOCK, DISPLAY_FLOW_ROOT} +
InternalTableBox
#TODO overflow, contain, flex, grid, multicol, column-span
@@ -2298,7 +2298,7 @@ proc repositionChildren(state: BlockState, box: BlockBox, lctx: LayoutState) =
proc layoutBlock(bctx: var BlockContext, box: BlockBox,
builder: BlockBoxBuilder, sizes: ResolvedSizes) =
let lctx = bctx.lctx
- let positioned = box.computed{"position"} != {
+ let positioned = box.computed{"position"} notin {
POSITION_STATIC, POSITION_FIXED, POSITION_STICKY
}
if positioned: