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

Chrome trips over SVG attribute spreadMethod with an uppercase value "PAD" #226

Open
lmeurs opened this issue May 27, 2014 · 0 comments
Open

Comments

@lmeurs
Copy link

lmeurs commented May 27, 2014

Chrome trips over an uppercase PAD value for SVG attribute spreadMethod and outputs the following error message in the console:

Error: Invalid value for attribute spreadMethod="PAD"

renderer/svg/svg.js contains the next declaration twice:

gradientEl.setAttribute('spreadMethod', 'PAD');

Lowercasing their values solves the problem for me:

gradientEl.setAttribute('spreadMethod', 'pad');

See ie. original basic mask demo.

Tested with:

  • BonsaiJS 0.4.3 and 0.4.5;
  • Chrome 35 and 37 (Canary);
  • Chrome <35, Firefox 29 and Internet Explorer 11 handle this attribute's value case insensitive.
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

1 participant