html - SVG Path Clipping issue in Chrome -


i'm experience clipping issue seems affect chrome not firefox.

firefox:

working firefox image

chrome:

non working chrome image

this svg tag definitions:

<svg width="0" height="0" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">      <g>         <clippath id="c3">             <polygon points="64.405,221.5 1.207,111.5 64.405,1.5 190.802,1.5 254,111.5 190.802,221.5"/>         </clippath>     </g>      <defs>         <g id="fullhex">             <polyline points="64.405,221.5 1.207,111.5 64.405,1.5 190.802,1.5 254,111.5 190.802,221.5 64.405,221.5" style="fill:none; stroke:rgba(60,158,194,.9); stroke-width:10" />         </g>     </defs> </svg> 

this html hexagon containers:

<div id="heximagecontainer">      <div id="profileimg1container" class="profileimgcontainer">         <div id="profileimg1" class="imgholder clip3">             <svg width="100%" height="100%">                 <use xlink:href = "#fullhex"/>             </svg>         </div>     </div>      <div id="profileimg2container" class="profileimgcontainer">         <div id="profileimg2" class="imgholder clip3">             <svg width="100%" height="100%">                 <use xlink:href = "#fullhex"/>             </svg>         </div>     </div>       <div id="profileimg3container" class="profileimgcontainer">                                <div id="profileimg3" class="imgholder clip3">             <svg width="100%" height="100%">                 <use xlink:href = "#fullhex"/>             </svg>         </div>     </div>  </div> 

and css:

.clip3 {      clip-path: url(#c3);      -webkit-clip-path: url(#c3);  }  #profileimg1container {     left: 200px;     top: 28px; }  .profileimgcontainer {     width: 256px;     height: 222px;     position: absolute; }  #heximagecontainer  {     background: url("hexshadow.png") no-repeat 0 0 scroll;     position:relative;     display:block;     width: 461px;     height: 495px;     top:-228px;     left:-11px; } 

as can see hexagon images not appear @ in chrome. what's noticeable contents of a, b, , c boxes isn't being displayed either.

wow! zoomed out in chrome , happened:

zoomed out chrome

does know need clipping effect work in chrome?

well since post not getting many views, decided attack problem different angle , saw method creating these shapes css3 rotations.

http://jsfiddle.net/kizu/bhgn4/

css

.hexagon  {     overflow: hidden;     visibility: hidden;     -webkit-transform: rotate(120deg);        -moz-transform: rotate(120deg);          -o-transform: rotate(120deg);             transform: rotate(120deg);     cursor: pointer; } .hexagon-in1  {     overflow: hidden;     width: 100%;     height: 100%;     -webkit-transform: rotate(-60deg);        -moz-transform: rotate(-60deg);          -o-transform: rotate(-60deg);             transform: rotate(-60deg); } .hexagon-in2  {     width: 100%;     height: 100%;     background-repeat: no-repeat;     background-position: 50%;     background-image: url(http://placekitten.com/240/240);     visibility: visible;     -webkit-transform: rotate(-60deg);        -moz-transform: rotate(-60deg);          -o-transform: rotate(-60deg);             transform: rotate(-60deg); } 

html:

<div class="hexagon hexagon1">     <div class="hexagon-in1">         <div class="hexagon-in2">         </div>     </div> </div> 

Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -