Kronuz / pyScss

pyScss, a Scss compiler for Python
MIT License
582 stars 141 forks source link

'//' in base64 encoded data is stripped as a comment. #266

Closed cpforbes closed 8 years ago

cpforbes commented 10 years ago

If base64 encoded data has // in it. The line is truncated by the comment removal code.

Example:

@function f($c) {
  @return $c url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDA//AAAUVBMVEWFhY==);                      
}
eevee commented 10 years ago

Ouch, that's going to be a bit painful. As a workaround, does it still work if you URL-encode the slashes?

eevee commented 8 years ago

Fixed in 1.3.5.