summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-08-15 20:15:58 +0100
committerMichael Drake <mdrake.unique@gmail.com>2022-08-29 13:49:20 +0100
commit166581e23cb6e1e6279f450635cd16a12f8b0ef2 (patch)
tree957ce75e15a34e4cd090dc489bd18b8c95b140a3 /test
parent2504bb6f6414ae36c036a84d21f7821178dc58ee (diff)
downloadlibcss-166581e23cb6e1e6279f450635cd16a12f8b0ef2.tar.gz
libcss-166581e23cb6e1e6279f450635cd16a12f8b0ef2.tar.bz2
Select: Make inherit flag handling aware of other default values
Diffstat (limited to 'test')
-rw-r--r--test/dump.h8
1 files changed, 7 insertions, 1 deletions
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);