Quantcast
Channel: ajaxmin Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 683

Commented Unassigned: CSS ASCII Encoding Error [21679]

$
0
0
Hi,

I have experienced an error relating to the CSS ASCII encoding.

I have changed the default encoding to ascii to avoid the well documented issue about converting "\e804" characters to "?" but now a space is added to the end of the character. Is this a bug or an issue my end?

#My code:

```
ajaxmin.exe TEST.css -out TEST.min.css -enc:out ascii -clobber
```

#Original CSS:

```
.icon-pencil:before
{
content: "\e606";
}
```

#Output CSS:

```
.icon-pencil:before{content:"\e606 "}
```

Please note the space at the end of the character code.

Regards,

Paul
Comments: ** Comment from web user: paulcwebx **

Hi,

Thanks for getting back to me.

I looked into the specs and you are correct as trailing spaces are swallowed up as part of the escape code. I was concerned that trailing spaces would be included in the CSS but that's not the case.

For everyones reference:

http://www.w3.org/International/questions/qa-escapes#cssescapes

An intentional trailing space requires a double space like:

`.icon-pencil:before{ content : "\e606 " }`
or
`.icon-pencil:before{ content : "\e606" " " }`

P.S. Thanks for a great extension!


Viewing all articles
Browse latest Browse all 683

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>