@@ -183,9 +183,9 @@ describe('CSSStyleDeclaration', () => {
183183 style . color = 'rgba(0,0,0,0)' ;
184184 expect ( style . color ) . toEqual ( 'rgba(0, 0, 0, 0)' ) ;
185185 style . color = 'rgba(5%, 10%, 20%, 0.4)' ;
186- expect ( style . color ) . toEqual ( 'rgba(12, 25 , 51, 0.4)' ) ;
186+ expect ( style . color ) . toEqual ( 'rgba(13, 26 , 51, 0.4)' ) ;
187187 style . color = 'rgb(33%, 34%, 33%)' ;
188- expect ( style . color ) . toEqual ( 'rgb(84, 86 , 84)' ) ;
188+ expect ( style . color ) . toEqual ( 'rgb(84, 87 , 84)' ) ;
189189 style . color = 'rgba(300, 200, 100, 1.5)' ;
190190 expect ( style . color ) . toEqual ( 'rgb(255, 200, 100)' ) ;
191191 style . color = 'hsla(0, 1%, 2%, 0.5)' ;
@@ -199,7 +199,7 @@ describe('CSSStyleDeclaration', () => {
199199 style . color = 'currentcolor' ;
200200 expect ( style . color ) . toEqual ( 'currentcolor' ) ;
201201 style . color = '#ffffffff' ;
202- expect ( style . color ) . toEqual ( 'rgba (255, 255, 255, 1 )' ) ;
202+ expect ( style . color ) . toEqual ( 'rgb (255, 255, 255)' ) ;
203203 style . color = '#fffa' ;
204204 expect ( style . color ) . toEqual ( 'rgba(255, 255, 255, 0.667)' ) ;
205205 style . color = '#ffffff66' ;
@@ -610,10 +610,4 @@ describe('CSSStyleDeclaration', () => {
610610 expect ( style . getPropertyValue ( '--foo' ) ) . toEqual ( '' ) ;
611611 expect ( style . getPropertyValue ( '--fOo' ) ) . toEqual ( 'purple' ) ;
612612 } ) ;
613-
614- test ( 'supports calc' , ( ) => {
615- const style = new CSSStyleDeclaration ( ) ;
616- style . setProperty ( 'width' , 'calc(100% - 100px)' ) ;
617- expect ( style . getPropertyValue ( 'width' ) ) . toEqual ( 'calc(100% - 100px)' ) ;
618- } ) ;
619613} ) ;
0 commit comments