File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ function localizeDeclValue(valueNode, context) {
175175
176176function localizeDecl ( decl , context ) {
177177 var valuesNode = Tokenizer . parseValues ( decl . value ) ;
178- var localizeName = / a n i m a t i o n ( - n a m e ) ? / . test ( decl . prop ) ;
178+ var localizeName = / a n i m a t i o n ( - n a m e ) ? $ / . test ( decl . prop ) ;
179179 var newValuesNode = Object . create ( valuesNode ) ;
180180 newValuesNode . nodes = valuesNode . nodes . map ( function ( valueNode ) {
181181 var subContext = {
Original file line number Diff line number Diff line change @@ -139,6 +139,11 @@ var tests = [
139139 input : '.foo { animation-name: bar; }' ,
140140 expected : ':local(.foo) { animation-name: :local(bar); }'
141141 } ,
142+ {
143+ should : 'not localize a single animation-delay' ,
144+ input : '.foo { animation-delay: 1s; }' ,
145+ expected : ':local(.foo) { animation-delay: 1s; }'
146+ } ,
142147 {
143148 should : 'localize multiple animation-names' ,
144149 input : '.foo { animation-name: bar, foobar; }' ,
You can’t perform that action at this time.
0 commit comments