Skip to content

Commit

Permalink
Add test for shape-outside: content-box, when padding is applied.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhorvath committed Apr 24, 2014
1 parent 3065eb7 commit ae11b97
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/shape-info-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,24 @@ function register(mocha, expect) {
{ top: 60, bottom: 80, offset: 80, cssFloat: 'left' },
]
},
{
name: 'for content-box (20px padding)',
shapeOutside: 'content-box',
styles: {
padding: '20px',
width: '80px',
height: '80px',
},
step: 20,
output: [
{ top: 0, bottom: 20, offset: 0, cssFloat: 'left' },
{ top: 20, bottom: 40, offset: 100, cssFloat: 'left' },
{ top: 40, bottom: 60, offset: 100, cssFloat: 'left' },
{ top: 60, bottom: 80, offset: 100, cssFloat: 'left' },
{ top: 80, bottom: 100, offset: 100, cssFloat: 'left' },
{ top: 100, bottom: 120, offset: 0, cssFloat: 'left' },
]
},
{
name: 'for inset with shape-margin applied',
shapeOutside: 'inset(31px 30px)',
Expand Down

0 comments on commit ae11b97

Please sign in to comment.