You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Feature
If this is a feature request, what is motivation for changing the behavior?
Increase SVG compatibility to allow CSS styling by including the viewBox attribute.
What is the current behavior?
Generating an SVG captcha results in the following SVG tag without viewBox:
Step to reproduce the bug or other relevant information
The line lib/index.js:75 should be updated to include a viewBox attribute. This allows CSS rules like width: auto and height: auto to be applied. This non-breaking change furthermore allows the captcha to cover or be contained in a parent div by applying the css object-fit property.
The text was updated successfully, but these errors were encountered:
I am very sorry. I had fixed it in v1.3.12. I've been busy designing v3.x to solve the problems thoroughly but more time need. The new release will solve a series of problems and provide more graceful APIs.
Keep in touch if you have any questions. Thanks for your support especially from you.
Do you want to request a feature or report a bug?
Feature
If this is a feature request, what is motivation for changing the behavior?
Increase SVG compatibility to allow CSS styling by including the
viewBox
attribute.What is the current behavior?
Generating an SVG captcha results in the following SVG tag without
viewBox
:What is the expected behavior?
Generating an SVG captcha should also include a
viewBox
:Step to reproduce the bug or other relevant information
The line
lib/index.js:75
should be updated to include aviewBox
attribute. This allows CSS rules likewidth: auto
andheight: auto
to be applied. This non-breaking change furthermore allows the captcha to cover or be contained in a parentdiv
by applying the cssobject-fit
property.The text was updated successfully, but these errors were encountered: