File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ for (var prop in fontVariantProperties) {
68
68
// create if does not exist
69
69
function getFontFeatureSettingsPrevTo ( decl ) {
70
70
var fontFeatureSettings = null ;
71
- decl . parent . eachDecl ( function ( decl ) {
71
+ decl . parent . walkDecls ( function ( decl ) {
72
72
if ( decl . prop === "font-feature-settings" ) {
73
73
fontFeatureSettings = decl ;
74
74
}
@@ -88,10 +88,10 @@ function getFontFeatureSettingsPrevTo(decl) {
88
88
*/
89
89
module . exports = postcss . plugin ( "postcss-font-variant" , function ( ) {
90
90
return function ( styles ) {
91
- styles . eachRule ( function ( rule ) {
91
+ styles . walkRules ( function ( rule ) {
92
92
var fontFeatureSettings = null
93
93
// read custom media queries
94
- rule . eachDecl ( function ( decl ) {
94
+ rule . walkDecls ( function ( decl ) {
95
95
if ( ! fontVariantProperties [ decl . prop ] ) {
96
96
return null
97
97
}
Original file line number Diff line number Diff line change 22
22
" index.js"
23
23
],
24
24
"dependencies" : {
25
- "postcss" : " ^4.1.16 "
25
+ "postcss" : " ^5.0.4 "
26
26
},
27
27
"devDependencies" : {
28
28
"jscs" : " ^2.1.0" ,
You can’t perform that action at this time.
0 commit comments