Skip to content

Commit

Permalink
Merge pull request stylus#323 from mhemesath/master
Browse files Browse the repository at this point in the history
Added support for inline svg [mhemesath]
  • Loading branch information
tj committed Jul 28, 2011
2 parents ff0c3af + 85b1526 commit fc20bd9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/images.styl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ body
#wrapper
background url(/images/gopher.jpg)

#footer
background url(/images/gradient.svg)

.sprite
// both work due to the additional paths option
// passed to stylus.url()
Expand Down
9 changes: 9 additions & 0 deletions examples/images/gradient.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/functions/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ var mimes = {
, '.png': 'image/png'
, '.jpg': 'image/jpeg'
, '.jpeg': 'image/jpeg'
, '.svg': 'image/svg+xml'
};

/**
Expand Down

0 comments on commit fc20bd9

Please sign in to comment.