Skip to content

Commit 7b84672

Browse files
committed
fix FontFeature initial, ListStyleType initial
1 parent 79ec194 commit 7b84672

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

lib/src/css_parser.dart

+9-3
Original file line numberDiff line numberDiff line change
@@ -939,13 +939,19 @@ class ExpressionMapping {
939939
nextExp.text == "off" ||
940940
nextExp.text == "1" ||
941941
nextExp.text == "0")) {
942-
fontFeatures.add(FontFeature(exp.text,
942+
try {
943+
fontFeatures.add(FontFeature(exp.text,
943944
nextExp.text == "on" || nextExp.text == "1" ? 1 : 0));
945+
} catch (_) {}
944946
} else {
945-
fontFeatures.add(FontFeature.enable(exp.text));
947+
try {
948+
fontFeatures.add(FontFeature.enable(exp.text));
949+
} catch (_) {}
946950
}
947951
} else {
948-
fontFeatures.add(FontFeature.enable(exp.text));
952+
try {
953+
fontFeatures.add(FontFeature.enable(exp.text));
954+
} catch (_) {}
949955
}
950956
}
951957
}

lib/src/style.dart

+1
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ enum Display {
600600
}
601601

602602
enum ListStyleType {
603+
initial('initial'),
603604
arabicIndic('arabic-indic'),
604605
armenian('armenian'),
605606
lowerArmenian('lower-armenian'),

0 commit comments

Comments
 (0)