Skip to content

Commit 8aca949

Browse files
phamconganhSub6Resources
authored andcommitted
fix FontFeature initial, ListStyleType initial
1 parent 2814407 commit 8aca949

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
@@ -937,13 +937,19 @@ class ExpressionMapping {
937937
nextExp.text == "off" ||
938938
nextExp.text == "1" ||
939939
nextExp.text == "0")) {
940-
fontFeatures.add(FontFeature(exp.text,
940+
try {
941+
fontFeatures.add(FontFeature(exp.text,
941942
nextExp.text == "on" || nextExp.text == "1" ? 1 : 0));
943+
} catch (_) {}
942944
} else {
943-
fontFeatures.add(FontFeature.enable(exp.text));
945+
try {
946+
fontFeatures.add(FontFeature.enable(exp.text));
947+
} catch (_) {}
944948
}
945949
} else {
946-
fontFeatures.add(FontFeature.enable(exp.text));
950+
try {
951+
fontFeatures.add(FontFeature.enable(exp.text));
952+
} catch (_) {}
947953
}
948954
}
949955
}

lib/src/style.dart

+1
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ extension MergeBorders on Border? {
590590
}
591591

592592
enum ListStyleType {
593+
initial('initial'),
593594
arabicIndic('arabic-indic'),
594595
armenian('armenian'),
595596
lowerArmenian('lower-armenian'),

0 commit comments

Comments
 (0)