Mam problem z działeniem clip-path w firefoxie i IE.
W chrome działa ok.
kod:
<section id="decor1" class="decor"></section> <svg> <defs> <clippath id="absolute_path" clipPathUnits="objectBoundingBox"> <polygon points="0 0, 2% 8%, 4% 0%, 6% 8%, 8% 0%, 10% 8%, 12% 0%, 14% 8%, 16% 0%, 18% 8%, 20% 0%, 22% 8%, 24% 0%, 26% 8%, 28% 0%, 30% 8%, 32% 0%,34% 8%, 36% 0%,38% 8%, 40% 0%,42% 8%, 44% 0%,46% 8%, 48% 0%,50% 8%, 52% 0%,54% 8%, 56% 0%,58% 8%, 60% 0%,62% 8%, 64% 0%,66% 8%, 68% 0%,70% 8%, 72% 0%,74% 8%, 76% 0%,78% 8%, 80% 0%,82% 8%, 84% 0%,86% 8%, 88% 0%,90% 8%, 92% 0%,94% 8%, 96% 0%,98% 8%, 100% 0%, 100% 100%, 98% 92%, 96% 100%, 94% 92%, 92% 100%, 90% 92%, 88% 100%, 86% 92%, 84% 100%, 82% 92%, 80% 100%, 78% 92%, 76% 100%, 74% 92%, 72% 100%, 70% 92%, 68% 100%, 66% 92%, 64% 100%, 62% 92%, 60% 100%, 58% 92%, 56% 100%, 54% 92%, 52% 100%, 50% 92%, 48% 100%, 46% 92%, 44% 100%, 42% 92%, 40% 100%, 38% 92%, 36% 100%, 34% 92%, 32% 100%, 30% 92%, 28% 100%, 26% 92%, 24% 100%, 22% 92%, 20% 100%, 18% 92%, 16% 100%, 14% 92%, 12% 100%, 10% 92%, 8% 100%, 6% 92%, 4% 100%, 2% 92%, 0% 100%"></polygon> </clippath> </defs> </svg>
css:
section.decor{ width:100%; height:200px; background-attachment: fixed; position: relative; -webkit-clip-path: polygon(0% 0%, 2% 8%, 4% 0%, 6% 8%, 8% 0%, 10% 8%, 12% 0%, 14% 8%, 16% 0%, 18% 8%, 20% 0%, 22% 8%, 24% 0%, 26% 8%, 28% 0%, 30% 8%, 32% 0%,34% 8%, 36% 0%,38% 8%, 40% 0%,42% 8%, 44% 0%,46% 8%, 48% 0%,50% 8%, 52% 0%,54% 8%, 56% 0%,58% 8%, 60% 0%,62% 8%, 64% 0%,66% 8%, 68% 0%,70% 8%, 72% 0%,74% 8%, 76% 0%,78% 8%, 80% 0%,82% 8%, 84% 0%,86% 8%, 88% 0%,90% 8%, 92% 0%,94% 8%, 96% 0%,98% 8%, 100% 0%, 100% 100%, 98% 92%, 96% 100%, 94% 92%, 92% 100%, 90% 92%, 88% 100%, 86% 92%, 84% 100%, 82% 92%, 80% 100%, 78% 92%, 76% 100%, 74% 92%, 72% 100%, 70% 92%, 68% 100%, 66% 92%, 64% 100%, 62% 92%, 60% 100%, 58% 92%, 56% 100%, 54% 92%, 52% 100%, 50% 92%, 48% 100%, 46% 92%, 44% 100%, 42% 92%, 40% 100%, 38% 92%, 36% 100%, 34% 92%, 32% 100%, 30% 92%, 28% 100%, 26% 92%, 24% 100%, 22% 92%, 20% 100%, 18% 92%, 16% 100%, 14% 92%, 12% 100%, 10% 92%, 8% 100%, 6% 92%, 4% 100%, 2% 92%, 0% 100%); -moz-clip-path: url(#absolute_path); -o-clip-path: url(#absolute_path); clip-path: url(#absolute_path); } section#decor1{ background-image: url(kostka_decor.jpg); }
Wdzięczny będę za pomoc.