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

Support shorthand property compression. #24

Merged
merged 1 commit into from
Aug 4, 2016
Merged

Conversation

tkaemming
Copy link
Collaborator

This reduces CSS properties to their shorthand form when possible during inlining.

@@ -122,13 +155,17 @@ def __unicode__(self):
Renders the properties as a string suitable for inclusion as a HTML tag
attribute.
"""
return '; '.join(map(': '.join, self.items()))
value = self.copy()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably unnecessary, but having a __unicode__ method mutate self seemed weird.

@BYK BYK merged commit 8b050b7 into master Aug 4, 2016
@BYK
Copy link
Contributor

BYK commented Aug 4, 2016

No blocker so I merged it. Feel free to follow up with those comments.

@tkaemming tkaemming deleted the property-compression branch August 4, 2016 20:22
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