Gitweb links:

...log 
http://git.netsurf-browser.org/libcss.git/shortlog/5851225a1bc9dcb950c3d1abced2b607a14db0ab
...commit 
http://git.netsurf-browser.org/libcss.git/commit/5851225a1bc9dcb950c3d1abced2b607a14db0ab
...tree 
http://git.netsurf-browser.org/libcss.git/tree/5851225a1bc9dcb950c3d1abced2b607a14db0ab

The branch, lcneves/flexbox has been updated
       via  5851225a1bc9dcb950c3d1abced2b607a14db0ab (commit)
      from  0c17636d54d619e0b3964096842fe43d90c94369 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/libcss.git/commit/?id=5851225a1bc9dcb950c3d1abced2b607a14db0ab
commit 5851225a1bc9dcb950c3d1abced2b607a14db0ab
Author: Lucas Neves <[email protected]>
Commit: Lucas Neves <[email protected]>

    Tests: Select: Add support to display: [inline-]flex and the corresponding 
min-width and min-height auto default value.

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 b832f80..34eaa91 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;


-----------------------------------------------------------------------

Summary of changes:
 test/data/select/tests1.dat |  131 +++----------------------------------------
 test/dump_computed.h        |   12 ++++
 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 b832f80..34eaa91 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;


-- 
Cascading Style Sheets library

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to