summaryrefslogtreecommitdiff
path: root/src/parse/properties/columns.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-08-13 16:23:56 +0100
committerMichael Drake <mdrake.unique@gmail.com>2022-08-29 13:49:20 +0100
commit2504bb6f6414ae36c036a84d21f7821178dc58ee (patch)
tree8c6573ae9fe6ebd8af7ff8eead85c387557a5c3b /src/parse/properties/columns.c
parent0997e85ec5f14bd0d6959b9201fcd3845b224747 (diff)
downloadlibcss-2504bb6f6414ae36c036a84d21f7821178dc58ee.tar.gz
libcss-2504bb6f6414ae36c036a84d21f7821178dc58ee.tar.bz2
Parse: Nongenerated properties: Explicit defaults
Diffstat (limited to 'src/parse/properties/columns.c')
-rw-r--r--src/parse/properties/columns.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/parse/properties/columns.c b/src/parse/properties/columns.c
index b245740..edc7ee6 100644
--- a/src/parse/properties/columns.c
+++ b/src/parse/properties/columns.c
@@ -39,19 +39,22 @@ css_error css__parse_columns(css_language *c,
bool count = true;
css_style *width_style;
css_style *count_style;
+ enum flag_value flag_value;
/* Firstly, handle inherit */
token = parserutils_vector_peek(vector, *ctx);
if (token == NULL)
return CSS_INVALID;
- if (is_css_inherit(c, token)) {
- error = css_stylesheet_style_inherit(result,
+ flag_value = get_css_flag_value(c, token);
+
+ if (flag_value != FLAG_VALUE__NONE) {
+ error = css_stylesheet_style_flag_value(result, flag_value,
CSS_PROP_COLUMN_WIDTH);
if (error != CSS_OK)
return error;
- error = css_stylesheet_style_inherit(result,
+ error = css_stylesheet_style_flag_value(result, flag_value,
CSS_PROP_COLUMN_COUNT);
if (error == CSS_OK)
parserutils_vector_iterate(vector, ctx);