diff options
Diffstat (limited to 'test/dump_computed.h')
-rw-r--r-- | test/dump_computed.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/dump_computed.h b/test/dump_computed.h index c76b17b..8315e65 100644 --- a/test/dump_computed.h +++ b/test/dump_computed.h @@ -1648,6 +1648,27 @@ static void dump_computed_style(const css_computed_style *style, char *buf, ptr += wrote; *len -= wrote; + /* opacity */ + val = css_computed_opacity(style, &len1); + switch (val) { + case CSS_OPACITY_SET: + wrote = snprintf(ptr, *len, "opacity: "); + ptr += wrote; + *len -= wrote; + + wrote = dump_css_fixed(len1, ptr, *len); + ptr += wrote; + *len -= wrote; + + wrote = snprintf(ptr, *len, "\n"); + break; + default: + wrote = 0; + break; + } + ptr += wrote; + *len -= wrote; + /* outline-color */ val = css_computed_outline_color(style, &color); switch (val) { |