summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Neves <lcneves@gmail.com>2017-08-30 19:20:49 (GMT)
committer Lucas Neves <lcneves@gmail.com>2017-09-26 02:00:25 (GMT)
commit0990b37aa1f6d753a03178309391118e645c08d0 (patch)
tree87732dd38b3df47eea2cb50a25fc29ec61aaa51f
parent9ce51bc289a5c02b11b9bb7f3d45c1233058bc36 (diff)
downloadlibcss-0990b37aa1f6d753a03178309391118e645c08d0.tar.gz
libcss-0990b37aa1f6d753a03178309391118e645c08d0.tar.bz2
Parse: handle important for Flexbox properties
-rw-r--r--src/parse/important.c20
-rw-r--r--src/parse/properties/Makefile2
2 files changed, 22 insertions, 0 deletions
diff --git a/src/parse/important.c b/src/parse/important.c
index ca4d60c..e0e8620 100644
--- a/src/parse/important.c
+++ b/src/parse/important.c
@@ -258,6 +258,21 @@ void css__make_style_important(css_style *style)
offset += 2; /* length + units */
break;
+ case CSS_PROP_FLEX_BASIS:
+ if (value == FLEX_BASIS_SET)
+ offset += 2; /* length + units */
+ break;
+
+ case CSS_PROP_FLEX_GROW:
+ if (value == FLEX_GROW_SET)
+ offset++; /* value */
+ break;
+
+ case CSS_PROP_FLEX_SHRINK:
+ if (value == FLEX_SHRINK_SET)
+ offset++; /* value */
+ break;
+
case CSS_PROP_FONT_FAMILY:
while (value != FONT_FAMILY_END) {
switch (value) {
@@ -331,6 +346,11 @@ void css__make_style_important(css_style *style)
offset++; /* value */
break;
+ case CSS_PROP_ORDER:
+ if (value == ORDER_SET)
+ offset++; /* value */
+ break;
+
case CSS_PROP_ORPHANS:
case CSS_PROP_PITCH_RANGE:
case CSS_PROP_RICHNESS:
diff --git a/src/parse/properties/Makefile b/src/parse/properties/Makefile
index 6d6cff0..b3ce886 100644
--- a/src/parse/properties/Makefile
+++ b/src/parse/properties/Makefile
@@ -45,6 +45,8 @@ DIR_SOURCES := \
cue.c \
cursor.c \
elevation.c \
+ flex.c \
+ flex-flow.c \
font.c \
font_family.c \
font_weight.c \