summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-12-31 16:02:31 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2014-12-31 16:04:06 (GMT)
commitca28ed98c3ff03bf7b351bf30ac8d76148e66b95 (patch)
tree98671507cdf07b80d334796b346d7175a14bd858
parentfbf3a601d1848ccd53e254c37dcd1913cf43d7ae (diff)
downloadlibcss-ca28ed98c3ff03bf7b351bf30ac8d76148e66b95.tar.gz
libcss-ca28ed98c3ff03bf7b351bf30ac8d76148e66b95.tar.bz2
Add absolute value conversion of currentColor for column-rule-color.
-rw-r--r--src/select/computed.c8
1 files changed, 8 insertions, 0 deletions
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);
}