jonkemp/inline-css

Wrong Css Gradient Inlining

Open

#52 opened on Sep 21, 2016

 (1 comment) (0 reactions) (0 assignees)JavaScript (79 forks)github user discovery
bughelp wanted

Repository metrics

Stars
 (438 stars)
PR merge metrics
 (No merged PRs in 30d)

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