summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/data/select/tests1.dat43
-rw-r--r--test/dump_computed.h27
2 files changed, 70 insertions, 0 deletions
diff --git a/test/data/select/tests1.dat b/test/data/select/tests1.dat
index c462066..217a21c 100644
--- a/test/data/select/tests1.dat
+++ b/test/data/select/tests1.dat
@@ -39,6 +39,7 @@ clip: auto
color: #ffff0000
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -138,6 +139,7 @@ clip: auto
color: #ffff0000
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -237,6 +239,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -336,6 +339,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -427,6 +431,7 @@ clip: auto
color: #ff000000
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -516,6 +521,7 @@ clip: auto
color: #ff000000
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -606,6 +612,7 @@ clip: auto
color: #ff000000
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -696,6 +703,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -785,6 +793,7 @@ clip: auto
color: #ff000000
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -879,6 +888,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -973,6 +983,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -1068,6 +1079,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -1166,6 +1178,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -1263,6 +1276,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -1366,6 +1380,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -1469,6 +1484,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -1572,6 +1588,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -1679,6 +1696,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -1785,6 +1803,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -1889,6 +1908,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -1992,6 +2012,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -2095,6 +2116,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -2198,6 +2220,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -2301,6 +2324,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -2404,6 +2428,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -2507,6 +2532,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -2610,6 +2636,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -2713,6 +2740,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -2816,6 +2844,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -2919,6 +2948,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -3022,6 +3052,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -3125,6 +3156,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -3228,6 +3260,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -3331,6 +3364,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -3434,6 +3468,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -3537,6 +3572,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -3640,6 +3676,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -3743,6 +3780,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -3846,6 +3884,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -3949,6 +3988,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -4045,6 +4085,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: balance
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -4141,6 +4182,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
@@ -4237,6 +4279,7 @@ clip: auto
color: inherit
column-count: auto
column-fill: inherit
+column-gap: normal
content: normal
counter-increment: none
counter-reset: none
diff --git a/test/dump_computed.h b/test/dump_computed.h
index 530b617..ace7fda 100644
--- a/test/dump_computed.h
+++ b/test/dump_computed.h
@@ -862,6 +862,33 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
ptr += wrote;
*len -= wrote;
+ /* column-gap */
+ val = css_computed_column_gap(style, &len1, &unit1);
+ switch (val) {
+ case CSS_COLUMN_GAP_INHERIT:
+ wrote = snprintf(ptr, *len, "column-gap: inherit\n");
+ break;
+ case CSS_COLUMN_GAP_NORMAL:
+ wrote = snprintf(ptr, *len, "column-gap: normal\n");
+ break;
+ case CSS_COLUMN_GAP_SET:
+ wrote = snprintf(ptr, *len, "column-gap: ");
+ ptr += wrote;
+ *len -= wrote;
+
+ wrote = dump_css_unit(len1, unit1, ptr, *len);
+ ptr += wrote;
+ *len -= wrote;
+
+ wrote = snprintf(ptr, *len, "\n");
+ break;
+ default:
+ wrote = 0;
+ break;
+ }
+ ptr += wrote;
+ *len -= wrote;
+
/* content */
val = css_computed_content(style, &content);
switch (val) {