@@ -343,9 +343,10 @@ class DecorationCSSRules {
343343 return '' ;
344344 }
345345 let cssTextArr : string [ ] = [ ] ;
346- this . collectCSSText ( opts , [ 'backgroundColor' , 'outline' , 'outlineColor' , 'outlineStyle' , 'outlineWidth' ] , cssTextArr ) ;
347- this . collectBorderSettingsCSSText ( opts , cssTextArr ) ;
348-
346+ this . collectCSSText ( opts , [ 'backgroundColor' ] , cssTextArr ) ;
347+ if ( this . collectCSSText ( opts , [ 'outline' , 'outlineColor' ] , cssTextArr ) ) {
348+ this . collectCSSText ( opts , [ 'outlineStyle' , 'outlineWidth' ] , cssTextArr ) ;
349+ }
349350 return cssTextArr . join ( '' ) ;
350351 }
351352
@@ -415,10 +416,9 @@ class DecorationCSSRules {
415416 return cssTextArr . join ( '' ) ;
416417 }
417418
418- private static border_rules = [ 'border' , 'borderRadius' , 'borderColor' , 'borderSpacing' , 'borderStyle' , 'borderWidth' ] ;
419-
420419 private collectBorderSettingsCSSText ( opts : any , cssTextArr : string [ ] ) : boolean {
421- if ( this . collectCSSText ( opts , DecorationCSSRules . border_rules , cssTextArr ) ) {
420+ if ( this . collectCSSText ( opts , [ 'border' , 'borderColor' ] , cssTextArr ) ) {
421+ this . collectCSSText ( opts , [ 'borderRadius' , 'borderSpacing' , 'borderStyle' , 'borderWidth' ] , cssTextArr ) ;
422422 cssTextArr . push ( strings . format ( 'box-sizing: border-box;' ) ) ;
423423 return true ;
424424 }
0 commit comments