diff options
author | bptato <nincsnevem662@gmail.com> | 2022-01-22 15:25:52 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-01-22 15:25:52 +0100 |
commit | 5148f88d52c4d8236eb9828921c6103056440102 (patch) | |
tree | 8fc717383b078aae5f2d3389c7f58155b8255244 /src/css/values.nim | |
parent | 352c2819ae7c8cd56d4f77954cfad9be45745f34 (diff) | |
download | chawan-5148f88d52c4d8236eb9828921c6103056440102.tar.gz |
Re-implement margins
Diffstat (limited to 'src/css/values.nim')
-rw-r--r-- | src/css/values.nim | 6 |
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) |