Skip to content

Commit a3fb6f1

Browse files
committed
Merge pull request #141 from kkirsche/patch-4
[Fix #104] Add support for `font-feature-settings`
2 parents b8e7f29 + 3593e56 commit a3fb6f1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/css/Properties.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ var Properties = {
309309
"float-offset" : 1,
310310
"font" : 1,
311311
"font-family" : 1,
312+
"font-feature-settings" : "<feature-tag-value> | normal | inherit",
312313
"font-kerning" : "auto | normal | none | initial | inherit | unset",
313314
"font-size" : "<absolute-size> | <relative-size> | <length> | <percentage> | inherit",
314315
"font-size-adjust" : "<number> | none | inherit",

src/css/ValidationTypes.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,10 @@ var ValidationTypes = {
210210

211211
"<flex-wrap>": function(part){
212212
return ValidationTypes.isLiteral(part, "nowrap | wrap | wrap-reverse");
213+
},
214+
215+
"<feature-tag-value>": function(part){
216+
return (part.type == "function" && /^[A-Z0-9]{4}$/i.test(part));
213217
}
214218
},
215219

0 commit comments

Comments
 (0)