summaryrefslogtreecommitdiff
path: root/src/select/properties/min_width.c
diff options
context:
space:
mode:
authorLucas Neves <lcneves@gmail.com>2017-09-28 15:46:31 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2017-10-21 15:03:51 +0100
commit12fd8aea8f990d30a2475ae886fc7aa98c77525b (patch)
tree77cb1264e856e4adfb472707008b791ce28c26a2 /src/select/properties/min_width.c
parentd637196dce1f95d5294d9fb6fc2a8a3c785684d4 (diff)
downloadlibcss-12fd8aea8f990d30a2475ae886fc7aa98c77525b.tar.gz
libcss-12fd8aea8f990d30a2475ae886fc7aa98c77525b.tar.bz2
Selection: Logic for the flexbox properties.
Diffstat (limited to 'src/select/properties/min_width.c')
-rw-r--r--src/select/properties/min_width.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/select/properties/min_width.c b/src/select/properties/min_width.c
index 5365588..8460e01 100644
--- a/src/select/properties/min_width.c
+++ b/src/select/properties/min_width.c
@@ -17,7 +17,7 @@
css_error css__cascade_min_width(uint32_t opv, css_style *style,
css_select_state *state)
{
- return css__cascade_length(opv, style, state, set_min_width);
+ return css__cascade_length_auto(opv, style, state, set_min_width);
}
css_error css__set_min_width_from_hint(const css_hint *hint,
@@ -29,7 +29,8 @@ css_error css__set_min_width_from_hint(const css_hint *hint,
css_error css__initial_min_width(css_select_state *state)
{
- return set_min_width(state->computed, CSS_MIN_WIDTH_SET, 0, CSS_UNIT_PX);
+ return set_min_width(state->computed, CSS_MIN_WIDTH_AUTO,
+ 0, CSS_UNIT_PX);
}
css_error css__compose_min_width(const css_computed_style *parent,