File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 11module . exports = function ( decl ) {
22 if ( decl . prop === 'flex' ) {
33 if ( decl . value === 'none' ) {
4- decl . value = '0 0 auto' ;
4+ return ;
55 }
66 }
77} ;
Original file line number Diff line number Diff line change @@ -6,12 +6,11 @@ describe('bug 6', function() {
66 var output = 'div{flex: 1 1 auto;}' ;
77 test ( input , output , { } , done ) ;
88 } ) ;
9- it ( 'Set flex 0 0 auto when none' , function ( done ) {
10- var input = 'div{flex: none;}' ;
11- var output = 'div{flex: 0 0 auto;}' ;
12- test ( input , output , { } , done ) ;
13- } ) ;
149 describe ( 'does nothing' , function ( ) {
10+ it ( 'when flex is set to none' , function ( done ) {
11+ var css = 'div{flex: none;}' ;
12+ test ( css , css , { } , done ) ;
13+ } ) ;
1514 it ( 'when not flex declarations' , function ( done ) {
1615 var css = 'a{display: flex;}' ;
1716 test ( css , css , { } , done ) ;
You can’t perform that action at this time.
0 commit comments