Git Product home page Git Product logo

Comments (10)

andrusieczko avatar andrusieczko commented on July 20, 2024

Hey,

Thanks for raising the issue, I'll try to look at it soon!

Cheers,
Karol

from clip-path-polygon.

zoxon avatar zoxon commented on July 20, 2024

Try add attribute style="width:0;height:0;visibility:hidden;position:absolute;" to svg

from clip-path-polygon.

andrusieczko avatar andrusieczko commented on July 20, 2024

Hey,

I added display: none to all the svg elements I'm creating.

I hope it'll help :)

Thanks again!

Cheers,
Karol

from clip-path-polygon.

zoxon avatar zoxon commented on July 20, 2024

Thank you, but with display: none svg path not work

from clip-path-polygon.

andrusieczko avatar andrusieczko commented on July 20, 2024

Hmm, which browser do you use? It seems to be working with your codepen (when I add display: none manually).

from clip-path-polygon.

andrusieczko avatar andrusieczko commented on July 20, 2024

Did you use the newest file?

https://raw.githubusercontent.com/andrusieczko/clip-path-polygon/master/build/clip-path-polygon.min.js

from clip-path-polygon.

zoxon avatar zoxon commented on July 20, 2024

Open this demo in firefox
http://codepen.io/Zoxon/pen/Kzrvoz
2016-05-07_08-49-11

With width:0;height:0;visibility:hidden;position:absolute; its work normaly

from clip-path-polygon.

andrusieczko avatar andrusieczko commented on July 20, 2024

Hey, you were right. Weirdly enough, it doesn't happen in all the cases, that's why I got confused.

Take a look at this PR: #22, let me know if it works for you, I'll merge it and npm publish it.

Thanks again!
Karol

from clip-path-polygon.

zoxon avatar zoxon commented on July 20, 2024

This work for me http://codepen.io/Zoxon/pen/GZzqav

var $svg = this._createSvgElement('svg').attr('width', 0).attr('height', 0).css({
    'width': 0,
    'height': 0,
    'visibility': 'hidden',
    'position': 'absolute'
});

2016-05-07_20-54-29

I'm modify script inside my project. Test only on firefox and chrome

And better use this styles in future

  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;

Hiswe/gulp-svg-symbols#23 (comment)

from clip-path-polygon.

andrusieczko avatar andrusieczko commented on July 20, 2024

Hi,

I added
'width': 0, 'height': 0, 'visibility': 'hidden', 'position': 'absolute'

I'm going to merge it and publish as 0.10.

Hopefully it works for everybody now! :)

Cheers,
Karol

from clip-path-polygon.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.