Skip to content

Commit a87beda

Browse files
committed
Fix @font-feature-values grammar.
1 parent d903f57 commit a87beda

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

README.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ this is used automatically.
137137
This is what it currently looks like:
138138
139139
```js
140-
var CSSGrammar = {
140+
{
141141
qualified: {declarations:true},
142142
"@media": {stylesheet:true},
143143
"@keyframes": {qualified:{declarations:true}},
@@ -146,7 +146,17 @@ var CSSGrammar = {
146146
"@scope": {stylesheet:true},
147147
"@counter-style": {declarations:true},
148148
"@import": null,
149-
"@font-feature-values": {declarations:true},
149+
"@font-feature-values": {
150+
// No qualified rules actually allowed,
151+
// but have to declare it one way or the other.
152+
qualified: true,
153+
"@stylistic": {declarations:true},
154+
"@styleset": {declarations:true},
155+
"@character-variants": {declarations:true},
156+
"@swash": {declarations:true},
157+
"@ornaments": {declarations:true},
158+
"@annotation": {declarations:true},
159+
},
150160
"@viewport": {declarations:true},
151161
"@page": {
152162
declarations: true,

parse-css.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,17 @@ var CSSGrammar = {
13881388
"@scope": {stylesheet:true},
13891389
"@counter-style": {declarations:true},
13901390
"@import": null,
1391-
"@font-feature-values": {declarations:true},
1391+
"@font-feature-values": {
1392+
// No qualified rules actually allowed,
1393+
// but have to declare it one way or the other.
1394+
qualified: true,
1395+
"@stylistic": {declarations:true},
1396+
"@styleset": {declarations:true},
1397+
"@character-variants": {declarations:true},
1398+
"@swash": {declarations:true},
1399+
"@ornaments": {declarations:true},
1400+
"@annotation": {declarations:true},
1401+
},
13921402
"@viewport": {declarations:true},
13931403
"@page": {
13941404
declarations: true,

0 commit comments

Comments
 (0)