@@ -32,6 +32,13 @@ describe('dimensionStyle – width & height helpers', () => {
3232 expect ( res [ 'max-width' ] ) . toBe ( 'calc(2 * var(--gap))' ) ;
3333 } ) ;
3434
35+ test ( 'width three args' , ( ) => {
36+ const res = widthStyle ( { width : 'initial 36x max-content' } ) as any ;
37+ expect ( res . width ) . toBe ( 'calc(36 * var(--gap))' ) ;
38+ expect ( res [ 'min-width' ] ) . toBe ( 'initial' ) ;
39+ expect ( res [ 'max-width' ] ) . toBe ( 'max-content' ) ;
40+ } ) ;
41+
3542 test ( 'stretch width keyword' , ( ) => {
3643 const res = widthStyle ( { width : 'stretch' } ) as any ;
3744 expect ( res . width ) . toEqual ( [
@@ -60,7 +67,7 @@ describe('dimensionStyle – width & height helpers', () => {
6067 expect ( res [ 'max-height' ] ) . toBe ( 'initial' ) ;
6168 } ) ;
6269
63- test ( 'min value height three args' , ( ) => {
70+ test ( 'height three args' , ( ) => {
6471 const res = heightStyle ( { height : '1x 5x 10x' } ) as any ;
6572 expect ( res . height ) . toBe ( 'calc(5 * var(--gap))' ) ;
6673 expect ( res [ 'min-height' ] ) . toBe ( 'var(--gap)' ) ;
@@ -71,4 +78,9 @@ describe('dimensionStyle – width & height helpers', () => {
7178 const res = heightStyle ( { height : true } ) as any ;
7279 expect ( res . height ) . toBe ( 'auto' ) ;
7380 } ) ;
81+
82+ test ( 'stretch height keyword' , ( ) => {
83+ const res = heightStyle ( { height : 'stretch' } ) as any ;
84+ expect ( res . height ) . toBe ( 'auto' ) ;
85+ } ) ;
7486} ) ;
0 commit comments