Skip to content

Commit ac2f724

Browse files
authored
Merge pull request #15 from arzg/fix-small-caps
Fix bug where font-variant-caps: small-caps resulted in c2sc feature
2 parents 792a72b + 589ca00 commit ac2f724

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ you will get:
4545

4646
```css
4747
h2 {
48-
font-feature-settings: "c2sc";
48+
font-feature-settings: "smcp";
4949
font-variant-caps: small-caps;
5050
}
5151

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var fontVariantProperties = {
2424
},
2525

2626
"font-variant-caps": {
27-
"small-caps": "\"c2sc\"",
27+
"small-caps": "\"smcp\"",
2828
"all-small-caps": "\"smcp\", \"c2sc\"",
2929
"petite-caps": "\"pcap\"",
3030
"all-petite-caps": "\"pcap\", \"c2pc\"",

test/fixtures/font-variant.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ selector {
1313
font-variant: inherit;
1414
}
1515
selector {
16-
font-variant: all-small-caps oldstyle-nums;
16+
font-variant: small-caps oldstyle-nums;
1717
}
1818
selector {
1919
font-feature-settings: "onum";

test/fixtures/font-variant.expected.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ selector {
1616
font-variant: inherit;
1717
}
1818
selector {
19-
font-feature-settings: "smcp", "c2sc", "onum";
20-
font-variant: all-small-caps oldstyle-nums;
19+
font-feature-settings: "smcp", "onum";
20+
font-variant: small-caps oldstyle-nums;
2121
}
2222
selector {
2323
font-feature-settings: "onum", "smcp", "c2sc";

0 commit comments

Comments
 (0)