about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-13 21:16:43 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-13 21:18:15 +0100
commit0ce307ef4535004708840497004395f09b74d67f (patch)
treedbecab8c649d219cb56259e7b26a119219d016de /src
parent531bb1cc261be1e89e398417760fca1261583582 (diff)
downloadchawan-0ce307ef4535004708840497004395f09b74d67f.tar.gz
layout: remove word-spacing
this was a bad idea
Diffstat (limited to 'src')
-rw-r--r--src/layout/engine.nim5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index d90fc52c..371121a3 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -283,10 +283,7 @@ func computeShift(ictx: InlineContext, state: InlineState): LayoutUnit =
     if ictx.currentLine.atoms.len == 0 or
         ictx.currentLine.atoms[^1].t == INLINE_SPACING:
       return 0
-  let spacing = state.computed{"word-spacing"}
-  if spacing.auto:
-    return ictx.cellwidth * ictx.whitespacenum
-  return spacing.px(ictx.lctx) * ictx.whitespacenum
+  return ictx.cellwidth * ictx.whitespacenum
 
 proc applyLineHeight(ictx: InlineContext, state: var LineBoxState,
     computed: CSSComputedValues) =