summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Neves <lcneves@gmail.com>2017-09-02 05:36:02 (GMT)
committer Lucas Neves <lcneves@gmail.com>2017-09-26 02:00:25 (GMT)
commitb277a4cbf404162890527d6794b6404cd7444ab7 (patch)
tree1dfddd6be6131d8a99e7f9016fe6695d5105821b
parentfa30e183c9ccf52ac8300a659466f5a438936630 (diff)
downloadlibcss-b277a4cbf404162890527d6794b6404cd7444ab7.tar.gz
libcss-b277a4cbf404162890527d6794b6404cd7444ab7.tar.bz2
Tests: add computed values for flexbox properties
-rw-r--r--test/dump_computed.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/dump_computed.h b/test/dump_computed.h
index c9d699d..c9ac15f 100644
--- a/test/dump_computed.h
+++ b/test/dump_computed.h
@@ -153,6 +153,40 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
lwc_string **string_list = NULL;
int32_t integer = 0;
+ /* align-content */
+ val = css_computed_align_content(style);
+ switch (val) {
+ case CSS_ALIGN_CONTENT_INHERIT:
+ wrote = snprintf(ptr, *len, "align-content: inherit\n");
+ break;
+ case CSS_ALIGN_CONTENT_STRETCH:
+ wrote = snprintf(ptr, *len, "align-content: stretch\n");
+ break;
+ case CSS_ALIGN_CONTENT_FLEX_START:
+ wrote = snprintf(ptr, *len, "align-content: flex-start\n");
+ break;
+ case CSS_ALIGN_CONTENT_FLEX_END:
+ wrote = snprintf(ptr, *len, "align-content: flex-end\n");
+ break;
+ case CSS_ALIGN_CONTENT_CENTER:
+ wrote = snprintf(ptr, *len, "align-content: center\n");
+ break;
+ case CSS_ALIGN_CONTENT_SPACE_BETWEEN:
+ wrote = snprintf(ptr, *len, "align-content: space-between\n");
+ break;
+ case CSS_ALIGN_CONTENT_SPACE_AROUND:
+ wrote = snprintf(ptr, *len, "align-content: space-around\n");
+ break;
+ case CSS_ALIGN_CONTENT_SPACE_EVENLY:
+ wrote = snprintf(ptr, *len, "align-content: space-evenly\n");
+ break;
+ default:
+ wrote = 0;
+ break;
+ }
+ ptr += wrote;
+ *len -= wrote;
+
/* background-attachment */
val = css_computed_background_attachment(style);
switch (val) {