Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip trailing semicolon in inline CSS #4

Closed
wants to merge 1 commit into from

Conversation

nochso
Copy link

@nochso nochso commented Oct 4, 2015

Turns

background-color: #FFFFFF ; 

into

background-color: #FFF

This is used for stripping the trailing semicolon from inline CSS, i.e. CSS without any selectors inside style="" attributes.

@jaswrks
Copy link

jaswrks commented Oct 6, 2015

Thank you. However, the CSS Compressor is not used on inline styles. Do you have a use case that does? I'd love to hear about that.

@nochso
Copy link
Author

nochso commented Oct 6, 2015

It's quite useful when generating static or single file content. For example a single page benchmark report generated by a library I'm writing.

CssMinifier is also being used by WyriHaximus/HtmlCompress which is used to compress any HTML including inline JS and CSS.

Anyway, I might be wrong, but the change I made should work on inline stuff while staying backwards compatible.

@jaswrks jaswrks closed this Jun 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants