File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,8 @@ export default class MjSection extends BodyComponent {
100100 ...( fullWidth ? { } : background ) ,
101101 margin : '0px auto' ,
102102 'max-width' : containerWidth ,
103+ 'border-radius' : this . getAttribute ( 'border-radius' ) ,
104+ ...( hasBorderRadius && { overflow : 'hidden' } ) ,
103105 } ,
104106 innerDiv : {
105107 'line-height' : '0' ,
Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ const $ = load(html)
2323// border radius values should be correct
2424chai
2525 . expect (
26- $ ( 'body > div > div > table:first-child > tbody > tr > td' )
26+ $ (
27+ 'body > div > div > table:first-child > tbody > tr > td, body > div > div' ,
28+ )
2729 . map ( function getAttr ( ) {
2830 const start = $ ( this ) . attr ( 'style' ) . indexOf ( 'border-radius:' ) + 14
2931 const end = $ ( this ) . attr ( 'style' ) . indexOf ( ';' , start )
3234 . get ( ) ,
3335 'Border-radius in CSS style values on mj-wrapper' ,
3436 )
35- . to . eql ( [ '10px' ] )
37+ . to . eql ( [ '10px' , '10px' ] )
38+
39+ // overflow value should be correct
40+ chai
41+ . expect (
42+ $ ( 'body > div > div' )
43+ . map ( function getAttr ( ) {
44+ const start = $ ( this ) . attr ( 'style' ) . indexOf ( 'overflow:' ) + 9
45+ const end = $ ( this ) . attr ( 'style' ) . indexOf ( ';' , start )
46+ return $ ( this ) . attr ( 'style' ) . substring ( start , end )
47+ } )
48+ . get ( ) ,
49+ 'Overflow in CSS style values on mj-wrapper' ,
50+ )
51+ . to . eql ( [ 'hidden' ] )
3652
3753// border collapse values should be correct
3854chai
You can’t perform that action at this time.
0 commit comments