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 Pipeline Rewrite breaks SVG fills #2784

Open
AeonSake opened this issue Jan 4, 2020 · 0 comments
Open

CSS Pipeline Rewrite breaks SVG fills #2784

AeonSake opened this issue Jan 4, 2020 · 0 comments
Labels

Comments

@AeonSake
Copy link

AeonSake commented Jan 4, 2020

The pipeline option assets.css_rewrite breaks URL-encoded IDs of linear gradients defined within the SVG.

SVG structure (example):

<svg height="200" width="200">
  <defs>
    <linearGradient id="linear-gradient" x1="0%" y1="0%" x2="100%" y2="0%">
      <stop offset="0%" stop-color="#000" />
      <stop offset="100%" stop-color="#fff" />
    </linearGradient>
  </defs>
  <ellipse cx="100" cy="100" rx="100" ry="100" fill="#ccc" />
</svg>

Before pipeline:

svg {
    fill: url(#linear-gradient);
}

After pipeline:

svg {
    fill: url(/user/themes/my-theme/css/#linear-gradient);
}
@rhukster rhukster added the bug label Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants