From ca28ed98c3ff03bf7b351bf30ac8d76148e66b95 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 31 Dec 2014 16:02:31 +0000 Subject: Add absolute value conversion of currentColor for column-rule-color. --- src/select/computed.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/select/computed.c') diff --git a/src/select/computed.c b/src/select/computed.c index a33b6a2..2dc9055 100644 --- a/src/select/computed.c +++ b/src/select/computed.c @@ -822,6 +822,14 @@ uint8_t css_computed_column_gap(const css_computed_style *style, uint8_t css_computed_column_rule_color(const css_computed_style *style, css_color *color) { + /* This property is in the uncommon block, so we need to do + * absolute value calculation here. */ + if (get_column_rule_color(style, color) == + CSS_COLUMN_RULE_COLOR_CURRENT_COLOR) { + css_computed_color(style, color); + + return CSS_COLUMN_RULE_COLOR_COLOR; + } return get_column_rule_color(style, color); } -- cgit v1.2.3