summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Neves <lcneves@gmail.com>2017-09-26 00:17:12 (GMT)
committer Lucas Neves <lcneves@gmail.com>2017-09-26 02:06:48 (GMT)
commit8db8c192ebcc85d2a39132d32c3901b137b6dc47 (patch)
tree3edb69fef79475a99cf29e084f14f71eaf90ae73
parent52d8cae3b878244bd5cfd9b1794e89c8bbb0e253 (diff)
downloadlibcss-8db8c192ebcc85d2a39132d32c3901b137b6dc47.tar.gz
libcss-8db8c192ebcc85d2a39132d32c3901b137b6dc47.tar.bz2
Tests: Select: Add support to display: [inline-]flex and the corresponding min-width and min-height auto default value.
-rw-r--r--test/data/select/tests1.dat131
-rw-r--r--test/dump_computed.h12
2 files changed, 20 insertions, 123 deletions
diff --git a/test/data/select/tests1.dat b/test/data/select/tests1.dat
index 53958a1..5b29e54 100644
--- a/test/data/select/tests1.dat
+++ b/test/data/select/tests1.dat
@@ -11442,9 +11442,7 @@ z-index: auto
#tree
| div*
#ua
-div { }
-#user
-div { }
+div { display: flex; }
#errors
#expected:
align-content: stretch
@@ -11491,7 +11489,7 @@ counter-increment: none
counter-reset: none
cursor: auto
direction: ltr
-display: inline
+display: flex
empty-cells: show
flex-basis: auto
flex-direction: row
@@ -11518,8 +11516,8 @@ margin-bottom: 0px
margin-left: 0px
max-height: none
max-width: none
-min-height: 0px
-min-width: 0px
+min-height: auto
+min-width: auto
opacity: 1.000
order: 0
outline-color: invert
@@ -11553,9 +11551,7 @@ z-index: auto
#tree
| div*
#ua
-div { }
-#user
-div { }
+div { display: inline-flex; }
#errors
#expected:
align-content: stretch
@@ -11602,7 +11598,7 @@ counter-increment: none
counter-reset: none
cursor: auto
direction: ltr
-display: inline
+display: inline-flex
empty-cells: show
flex-basis: auto
flex-direction: row
@@ -11629,119 +11625,8 @@ margin-bottom: 0px
margin-left: 0px
max-height: none
max-width: none
-min-height: 0px
-min-width: 0px
-opacity: 1.000
-order: 0
-outline-color: invert
-outline-style: none
-outline-width: 2px
-overflow-x: visible
-overflow-y: visible
-padding-top: 0px
-padding-right: 0px
-padding-bottom: 0px
-padding-left: 0px
-position: static
-quotes: none
-right: auto
-table-layout: auto
-text-align: default
-text-decoration: none
-text-indent: 0px
-text-transform: none
-top: auto
-unicode-bidi: normal
-vertical-align: baseline
-visibility: visible
-white-space: normal
-width: auto
-word-spacing: normal
-writing-mode: horizontal-tb
-z-index: auto
-#reset
-
-#tree
-| div*
-#ua
-div { }
-#user
-div { }
-#errors
-#expected:
-align-content: stretch
-align-items: stretch
-align-self: auto
-background-attachment: scroll
-background-color: #00000000
-background-image: none
-background-position: 0% 0%
-background-repeat: repeat
-border-collapse: separate
-border-spacing: 0px 0px
-border-top-color: #ff000000
-border-right-color: #ff000000
-border-bottom-color: #ff000000
-border-left-color: #ff000000
-border-top-style: none
-border-right-style: none
-border-bottom-style: none
-border-left-style: none
-border-top-width: 2px
-border-right-width: 2px
-border-bottom-width: 2px
-border-left-width: 2px
-bottom: auto
-box-sizing: content-box
-break-after: auto
-break-before: auto
-break-inside: auto
-caption-side: top
-clear: none
-clip: auto
-color: #ff000000
-column-count: auto
-column-fill: balance
-column-gap: normal
-column-rule-color: #ff000000
-column-rule-style: none
-column-rule-width: 2px
-column-span: none
-column-width: auto
-content: normal
-counter-increment: none
-counter-reset: none
-cursor: auto
-direction: ltr
-display: inline
-empty-cells: show
-flex-basis: auto
-flex-direction: row
-flex-grow: 0.000
-flex-shrink: 1.000
-flex-wrap: nowrap
-float: none
-font-family: sans-serif
-font-size: 12pt
-font-style: normal
-font-variant: normal
-font-weight: normal
-height: auto
-justify-content: flex-start
-left: auto
-letter-spacing: normal
-line-height: normal
-list-style-image: none
-list-style-position: outside
-list-style-type: disc
-margin-top: 0px
-margin-right: 0px
-margin-bottom: 0px
-margin-left: 0px
-max-height: none
-max-width: none
-min-height: 0px
-min-width: 0px
+min-height: auto
+min-width: auto
opacity: 1.000
order: 0
outline-color: invert
diff --git a/test/dump_computed.h b/test/dump_computed.h
index 8c45100..c33704a 100644
--- a/test/dump_computed.h
+++ b/test/dump_computed.h
@@ -1567,6 +1567,12 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
case CSS_DISPLAY_NONE:
wrote = snprintf(ptr, *len, "display: none\n");
break;
+ case CSS_DISPLAY_FLEX:
+ wrote = snprintf(ptr, *len, "display: flex\n");
+ break;
+ case CSS_DISPLAY_INLINE_FLEX:
+ wrote = snprintf(ptr, *len, "display: inline-flex\n");
+ break;
default:
wrote = 0;
break;
@@ -2339,6 +2345,9 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
case CSS_MIN_HEIGHT_INHERIT:
wrote = snprintf(ptr, *len, "min-height: inherit\n");
break;
+ case CSS_MIN_HEIGHT_AUTO:
+ wrote = snprintf(ptr, *len, "min-height: auto\n");
+ break;
case CSS_MIN_HEIGHT_SET:
wrote = snprintf(ptr, *len, "min-height: ");
ptr += wrote;
@@ -2363,6 +2372,9 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
case CSS_MIN_WIDTH_INHERIT:
wrote = snprintf(ptr, *len, "min-width: inherit\n");
break;
+ case CSS_MIN_WIDTH_AUTO:
+ wrote = snprintf(ptr, *len, "min-width: auto\n");
+ break;
case CSS_MIN_WIDTH_SET:
wrote = snprintf(ptr, *len, "min-width: ");
ptr += wrote;