From efe492aedbe9eb661a0ffb469649613fa7cfc6b0 Mon Sep 17 00:00:00 2001 From: bptato Date: Fri, 6 Jan 2023 22:34:39 +0100 Subject: layout/engine: fix marker box computed values --- src/layout/engine.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/layout/engine.nim') diff --git a/src/layout/engine.nim b/src/layout/engine.nim index fdbfa81c..f116e440 100644 --- a/src/layout/engine.nim +++ b/src/layout/engine.nim @@ -1227,7 +1227,7 @@ proc getTextBox(computed: CSSComputedValues): InlineBoxBuilder = proc getMarkerBox(computed: CSSComputedValues, listItemCounter: int): MarkerBoxBuilder = new(result) result.inlinelayout = true - result.computed = computed.copyProperties() + result.computed = computed.inheritProperties() result.computed{"display"} = DISPLAY_INLINE # Use pre, so the space at the end of the default markers isn't ignored. result.computed{"white-space"} = WHITESPACE_PRE -- cgit 1.4.1-2-gfad0