Skip to content

Commit

Permalink
fixes #22:
Browse files Browse the repository at this point in the history
Chrome 55+ hot fix: render SVG first, then add clip-path property
  • Loading branch information
andrusieczko committed Dec 20, 2016
1 parent 8e4b14f commit b674856
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# clip-path-polygon changelog

### 0.1.11 (2016-12-20)
* [BUGFIX] Chrome 55+ hot fix: render SVG first, then add clip-path property

### 0.1.10 (2016-05-07)
* [BUGFIX] change `display: none` on the created `svg` elements to `position: absolute; visibility: hidden` (sometimes `display: none` didn't work in Firefox)

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clip-path-polygon",
"version": "0.1.10",
"version": "0.1.11",
"homepage": "https://github.com/andrusieczko/clip-path-polygon",
"authors": [
"Karol Andrusieczko <karol.andrusieczko@gmail.com>"
Expand Down
4 changes: 2 additions & 2 deletions build/clip-path-polygon.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions js/clip-path-polygon.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jQuery clip-path-polygon Plugin v0.1.10 (2016-05-07)
* jQuery clip-path-polygon Plugin v0.1.11 (2016-12-20)
* jQuery plugin that makes easy to use clip-path on whatever tag under different browsers
* https://github.com/andrusieczko/clip-path-polygon
*
Expand Down Expand Up @@ -48,12 +48,12 @@ var jQuery = jQuery || globalVariable.jQuery || (require && require('jquery'));

_createClipPath: function(points) {
this._createSvgDefs();
if (this.isForWebkit) {
this._createWebkitClipPath(points);
}
if (this.isForSvg) {
this._createSvgBasedClipPath(points);
}
if (this.isForWebkit) {
this._createWebkitClipPath(points);
}
},

_createWebkitClipPath: function(points) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "js/clip-path-polygon",
"url": "https://github.com/andrusieczko/clip-path-polygon",
"description": "jQuery plugin that makes easy to use clip-path on whatever tag under different browsers",
"version": "0.1.10",
"version": "0.1.11",
"repository": {
"type": "git",
"url": "git://github.com/andrusieczko/clip-path-polygon.git"
Expand Down

0 comments on commit b674856

Please sign in to comment.