about summary refs log tree commit diff stats
path: root/src/css/values.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-01-22 15:25:52 +0100
committerbptato <nincsnevem662@gmail.com>2022-01-22 15:25:52 +0100
commit5148f88d52c4d8236eb9828921c6103056440102 (patch)
tree8fc717383b078aae5f2d3389c7f58155b8255244 /src/css/values.nim
parent352c2819ae7c8cd56d4f77954cfad9be45745f34 (diff)
downloadchawan-5148f88d52c4d8236eb9828921c6103056440102.tar.gz
Re-implement margins
Diffstat (limited to 'src/css/values.nim')
-rw-r--r--src/css/values.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/css/values.nim b/src/css/values.nim
index 4d3c2110..e064e909 100644
--- a/src/css/values.nim
+++ b/src/css/values.nim
@@ -707,9 +707,9 @@ proc applyValue(vals, parent: CSSSpecifiedValues, t: CSSPropertyType, val: CSSSp
 
 proc applyShorthand(vals, parent: CSSSpecifiedValues, left, right, top, bottom: CSSSpecifiedValue, global: CSSGlobalValueType) =
   vals.applyValue(parent, left.t, left, global)
-  vals.applyValue(parent, left.t, right, global)
-  vals.applyValue(parent, left.t, top, global)
-  vals.applyValue(parent, left.t, bottom, global)
+  vals.applyValue(parent, right.t, right, global)
+  vals.applyValue(parent, top.t, top, global)
+  vals.applyValue(parent, bottom.t, bottom, global)
 
 proc applyValue*(vals, parent: CSSSpecifiedValues, d: CSSDeclaration) =
   let vv = getSpecifiedValue(d, parent)