summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-12-31 16:00:38 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2014-12-31 16:04:06 (GMT)
commitfbf3a601d1848ccd53e254c37dcd1913cf43d7ae (patch)
treee666081f8b76e98b3386232fa6f3ea6fd7cb5ea2
parentd0f9af00a4c15a3214e843d2f10597a78cb8a28e (diff)
downloadlibcss-fbf3a601d1848ccd53e254c37dcd1913cf43d7ae.tar.gz
libcss-fbf3a601d1848ccd53e254c37dcd1913cf43d7ae.tar.bz2
Fix handling of currentColor.
-rw-r--r--src/select/properties/column_rule_color.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/select/properties/column_rule_color.c b/src/select/properties/column_rule_color.c
index d4b0e77..a5666e4 100644
--- a/src/select/properties/column_rule_color.c
+++ b/src/select/properties/column_rule_color.c
@@ -27,9 +27,7 @@ css_error css__cascade_column_rule_color(uint32_t opv, css_style *style,
value = CSS_COLUMN_RULE_COLOR_COLOR;
break;
case COLUMN_RULE_COLOR_CURRENT_COLOR:
- /* color: currentColor always computes to inherit */
- value = CSS_COLUMN_RULE_COLOR_INHERIT;
- inherit = true;
+ value = CSS_COLUMN_RULE_COLOR_CURRENT_COLOR;
break;
case COLUMN_RULE_COLOR_SET:
value = CSS_COLUMN_RULE_COLOR_COLOR;
@@ -56,7 +54,7 @@ css_error css__set_column_rule_color_from_hint(const css_hint *hint,
css_error css__initial_column_rule_color(css_select_state *state)
{
return set_column_rule_color(state->computed,
- CSS_COLUMN_RULE_COLOR_INHERIT, 0);
+ CSS_COLUMN_RULE_COLOR_CURRENT_COLOR, 0);
}
css_error css__compose_column_rule_color(const css_computed_style *parent,