Permalink
Browse files

IE<9 border-image: treat everything like 'stretch', which is likely a…

… more sane fallback than not clipping the image at all.
  • Loading branch information...
1 parent f745eac commit 767eed57332ef8ddbc31458c3156e4dec2169bfe Jason Johnston committed Aug 10, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 sources/BorderImageRenderer.js
@@ -77,14 +77,15 @@ PIE.BorderImageRenderer = PIE.RendererBase.newRenderer( {
setCrops( [ 'tr', 'r', 'br' ], 'cropLeft', ( imgSize.w - sliceR ) / imgSize.w );
// edges and center
- if( props.repeat.v === 'stretch' ) {
+ // TODO right now this treats everything like 'stretch', need to support other schemes
+ //if( props.repeat.v === 'stretch' ) {
setCrops( [ 'l', 'r', 'c' ], 'cropTop', sliceT / imgSize.h );
setCrops( [ 'l', 'r', 'c' ], 'cropBottom', sliceB / imgSize.h );
- }
- if( props.repeat.h === 'stretch' ) {
+ //}
+ //if( props.repeat.h === 'stretch' ) {
setCrops( [ 't', 'b', 'c' ], 'cropLeft', sliceL / imgSize.w );
setCrops( [ 't', 'b', 'c' ], 'cropRight', sliceR / imgSize.w );
- }
+ //}
// center fill
pieces['c'].style.display = props.fill ? '' : 'none';

0 comments on commit 767eed5

Please sign in to comment.