jonkemp/inline-css

Wrong Css Gradient Inlining

Open

#52 opened on Sep 21, 2016

View on GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (80 forks)github user discovery
bughelp wanted

Repository metrics

Stars
 (440 stars)
PR merge metrics
 (PR metrics pending)

Description

Hello!

This code: .class { background: -webkit-linear-gradient(-45deg, #306ab2 0%, #00e1ed 70%, #00e1ed 70%); }

Inlines like a: <div class="class" style="background: -webkit-linear-gradient(-45deg, #306ab20%, #00e1ed70%, #00e1ed70%);">Some content</div>

We losing "spaces" between color hashes and percent values.

Contributor guide