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 --- test/dump.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/dump.h b/test/dump.h index acfd8b0..f585788 100644 --- a/test/dump.h +++ b/test/dump.h @@ -788,8 +788,14 @@ void dump_bytecode(css_style *style, char **ptr, uint32_t depth) *((*ptr)++) = ' '; *ptr += sprintf(*ptr, "%s: ", opcode_names[op]); - if (isInherit(opv)) { + if (getFlagValue(opv) == FLAG_VALUE_INHERIT) { *ptr += sprintf(*ptr, "inherit"); + } else if (getFlagValue(opv) == FLAG_VALUE_INITIAL) { + *ptr += sprintf(*ptr, "initial"); + } else if (getFlagValue(opv) == FLAG_VALUE_REVERT) { + *ptr += sprintf(*ptr, "revert"); + } else if (getFlagValue(opv) == FLAG_VALUE_UNSET) { + *ptr += sprintf(*ptr, "unset"); } else { value = getValue(opv); -- cgit v1.2.1