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

Css linear-gradient "to right" minified as "toright" #17

Open
rogervila opened this issue Mar 16, 2017 · 2 comments
Open

Css linear-gradient "to right" minified as "toright" #17

rogervila opened this issue Mar 16, 2017 · 2 comments

Comments

@rogervila
Copy link

Hello,

Since I'm using amp, I have to put the css between <style> tags.

This is the original css:

<style>
.foo {
    background: linear-gradient(to right, red, green, blue)
}
</style>

This is the compressed one:

<!-- 'to right' minified as 'toright' -->
<style>.foo{background:linear-gradient(toright,red,green,blue)}</style>

Should this issue be on the html_press repo? Is there a way to fix this?

Thank you!

@mathiasleroy
Copy link

Also spaces within inline css calc() should not be deleted

height: calc(100vh - 6px);

becomes

height: calc(100vh-6px);

which is invalid

@mathiasleroy
Copy link

This hack works

calc(calc(100vh) - calc(6px)); 

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

No branches or pull requests

2 participants