Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Sprite Offset-y doesn't respond to percentage #1012

JaredSartin opened this Issue · 4 comments

3 participants


when you setup a sprite with +spritedir-sprite(icon-large, $offset-x: 100%, %offset-y: 50%) - the resulting sprite gets a background position of: 100% 50px.

Any number given to $offset-y is converted to px. This is all fine and dandy for vertical sprites, but horizontal ones need to do the 100% to the y offset.

Line 158 in compass / lib / compass / sass_extensions / functions / sprites.rb checks the x offset for percentage and uses it if there is, but nothing is done for the y offset - it just parses out the number and puts the px on there.



Was pretty simple... I couldn't find tests for this area, so I didn't include any.


wip: #1014

@scottdavis scottdavis closed this

is not finished.

@chriseppstein chriseppstein reopened this

Should be on top of the changes coming in #1771

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.