From 166581e23cb6e1e6279f450635cd16a12f8b0ef2 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 15 Aug 2022 20:15:58 +0100 Subject: Select: Make inherit flag handling aware of other default values --- src/select/properties/direction.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/select/properties/direction.c') diff --git a/src/select/properties/direction.c b/src/select/properties/direction.c index f4a5c46..6baa58b 100644 --- a/src/select/properties/direction.c +++ b/src/select/properties/direction.c @@ -21,7 +21,7 @@ css_error css__cascade_direction(uint32_t opv, css_style *style, UNUSED(style); - if (isInherit(opv) == false) { + if (hasFlagValue(opv) == false) { switch (getValue(opv)) { case DIRECTION_LTR: value = CSS_DIRECTION_LTR; @@ -33,7 +33,7 @@ css_error css__cascade_direction(uint32_t opv, css_style *style, } if (css__outranks_existing(getOpcode(opv), isImportant(opv), state, - isInherit(opv))) { + getFlagValue(opv))) { return set_direction(state->computed, value); } -- cgit v1.2.3