cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <h1>CSS clip-path url() with SVG clipPath</h1>
<svg viewBox="0 0 512 512" width="0" height="0">
  <defs>
    <clipPath id="snowflake">
<path transform="scale(0.66) translate(125,0)" d="M489.4,245.9H448l11.3-19.7c2.8-4.8,1.1-11-3.7-13.7c-4.8-2.8-11-1.1-13.7,3.7l-17.1,29.7h-28.2l33.7-58.5
	c2.8-4.8,1.1-11-3.7-13.7c-4.8-2.8-11-1.1-13.7,3.7l-39.6,68.5h-27.2c-2.9-25.7-16.6-48.2-36.4-62.9l13.7-23.6l79.2,0
	c5.6,0,10.1-4.5,10.1-10.1c0-5.6-4.5-10.1-10.1-10.1l-67.5,0l14.1-24.4l34.3,0l0,0c5.6,0,10.1-4.5,10.1-10.1
	c0-5.6-4.5-10.1-10.1-10.1l-22.7,0l20.7-35.9c2.8-4.8,1.1-11-3.7-13.7c-4.8-2.8-11-1.1-13.7,3.7l-20.8,35.9L332,65
	c-2.8-4.8-9-6.5-13.7-3.7c-4.8,2.8-6.5,8.9-3.7,13.7l17.2,29.7l-14.1,24.4l-33.7-58.5c-2.8-4.8-8.9-6.5-13.7-3.7
	c-4.8,2.8-6.5,8.9-3.7,13.7l39.5,68.5l-13.6,23.6c-11.1-4.9-23.4-7.7-36.3-7.7c-12.9,0-25.2,2.8-36.3,7.6l-13.6-23.5l39.5-68.5
	c2.8-4.8,1.1-11-3.7-13.7c-4.8-2.8-11-1.1-13.7,3.7l-33.7,58.5l-14.1-24.4L197.6,75c2.8-4.8,1.1-11-3.7-13.7
	c-4.8-2.8-11-1.1-13.7,3.7l-11.3,19.7l-20.8-36c-2.8-4.8-9-6.4-13.7-3.7c-4.8,2.8-6.5,8.9-3.7,13.7l20.7,36h-22.7
	c-5.6,0-10.1,4.5-10.1,10.1c0,5.6,4.5,10.1,10.1,10.1h34.3l14.1,24.4h-67.5c-5.6,0-10.1,4.5-10.1,10.1c0,5.6,4.5,10.1,10.1,10.1
	h79.1l13.7,23.7c-19.8,14.7-33.5,37.1-36.4,62.9h-27.2l-39.6-68.5c-2.8-4.8-9-6.5-13.8-3.7c-4.8,2.8-6.5,8.9-3.7,13.7l33.8,58.5
	H87.2l-17.1-29.7c-2.8-4.8-9-6.4-13.7-3.7c-4.8,2.8-6.5,8.9-3.7,13.7L64,245.9H22.5c-5.6,0-10.1,4.5-10.1,10.1s4.5,10.1,10.1,10.1
	H64l-11.3,19.7c-2.8,4.8-1.1,11,3.7,13.7c1.6,0.9,3.3,1.4,5,1.4c3.5,0,6.9-1.8,8.7-5l17.1-29.7h28.2l-33.8,58.5
	c-2.8,4.8-1.1,11,3.7,13.7c1.6,0.9,3.3,1.4,5,1.4c3.5,0,6.9-1.8,8.7-5l39.6-68.5h27.2c2.9,25.7,16.6,48.2,36.4,62.9l-13.7,23.7
	h-79.1c-5.6,0-10.1,4.5-10.1,10.1c0,5.6,4.5,10.1,10.1,10.1H177l-14.1,24.4h-34.3c-5.6,0-10.1,4.5-10.1,10.1s4.5,10.1,10.1,10.1
	h22.7l-20.7,35.9c-2.8,4.8-1.1,11,3.7,13.7c1.6,0.9,3.3,1.4,5,1.4c3.5,0,6.9-1.8,8.7-5l20.8-35.9l11.4,19.7c1.9,3.2,5.2,5,8.7,5
	c1.7,0,3.4-0.4,5-1.4c4.8-2.8,6.5-8.9,3.7-13.7l-17.2-29.7l14.1-24.4l33.8,58.5c1.9,3.2,5.2,5,8.7,5c1.7,0,3.4-0.4,5-1.4
	c4.8-2.8,6.5-8.9,3.7-13.7l-39.6-68.5l13.6-23.6c11.1,4.9,23.4,7.7,36.3,7.7c12.9,0,25.2-2.8,36.3-7.7l13.6,23.6l-39.6,68.5
	c-2.8,4.8-1.1,11,3.7,13.7c1.6,0.9,3.3,1.4,5,1.4c3.5,0,6.9-1.8,8.7-5l33.8-58.5l14.1,24.4l-17.1,29.7c-2.8,4.8-1.1,11,3.7,13.7
	c1.6,0.9,3.3,1.4,5,1.4c3.5,0,6.9-1.8,8.7-5l11.3-19.6l20.8,36c1.9,3.2,5.3,5,8.7,5c1.7,0,3.5-0.4,5-1.4c4.8-2.8,6.5-8.9,3.7-13.7
	l-20.8-36h22.7c5.6,0,10.1-4.5,10.1-10.1c0-5.6-4.5-10.1-10.1-10.1h-34.3L335,372.7l67.5,0c5.6,0,10.1-4.5,10.1-10.1
	c0-5.6-4.5-10.1-10.1-10.1l-79.1,0l-13.7-23.6c19.9-14.7,33.5-37.1,36.4-62.9h27.2l39.6,68.5c1.9,3.2,5.2,5,8.7,5
	c1.7,0,3.4-0.4,5-1.4c4.8-2.8,6.4-8.9,3.7-13.7l-33.7-58.5h28.2l17.2,29.7c1.9,3.2,5.2,5,8.7,5c1.7,0,3.4-0.4,5-1.4
	c4.8-2.8,6.5-8.9,3.7-13.7L448,266.1h41.5c5.6,0,10.1-4.5,10.1-10.1C499.5,250.4,495,245.9,489.4,245.9z M326.5,256
	c0,3.5-0.6,6.7-1,10.1c-2.6,18.3-12.2,34.2-26.1,45.1c-5.3,4.2-11,7.7-17.3,10.3c-8.1,3.2-16.9,5.2-26.2,5.2c-9.3,0-18-1.9-26.2-5.2
	c-6.3-2.5-12.1-6.1-17.3-10.3c-13.9-10.9-23.4-26.8-26.1-45.1c-0.5-3.3-1-6.6-1-10.1c0-3.5,0.5-6.8,1-10.1
	c2.6-18.3,12.2-34.2,26.1-45.1c5.3-4.2,11-7.7,17.3-10.3c8.1-3.2,16.9-5.2,26.2-5.2c9.3,0,18,1.9,26.2,5.2
	c6.3,2.5,12.1,6.1,17.3,10.3c13.9,10.9,23.4,26.8,26.1,45.1C326,249.2,326.5,252.5,326.5,256z"/>
    </clipPath>
    </defs>
<!--  <image clip-path="url(#snowflake)" width="512" height="512"  preserveAspectRatio="xMinYMid slice" xlink:href="http://maddesigns.de/SVG/clip-path-test_files/Winter-Wonderland.jpg"></image>-->

</svg>

<img src="http://maddesigns.de/SVG/clip-path-test_files/Winter-Wonderland.jpg" alt="" />

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam qui earum, eos ipsa ex perspiciatis. Eos ratione veniam eius provident, quae nobis accusantium molestiae consequatur amet explicabo in labore dolore? Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam qui earum, eos ipsa ex perspiciatis. Eos ratione veniam eius provident, quae nobis accusantium molestiae consequatur amet explicabo in labore dolore? Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam qui earum, eos ipsa ex perspiciatis. Eos ratione veniam eius provident, quae nobis accusantium molestiae consequatur amet explicabo in labore dolore? Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam qui earum, eos ipsa ex perspiciatis. Eos ratione veniam eius provident, quae nobis accusantium molestiae consequatur amet explicabo in labore dolore? Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam qui earum, eos ipsa ex perspiciatis. Eos ratione veniam eius provident, quae nobis accusantium molestiae consequatur amet explicabo in labore dolore? Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam qui earum, eos ipsa ex perspiciatis. Eos ratione veniam eius provident, quae nobis accusantium molestiae consequatur amet explicabo in labore dolore? Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam qui earum, eos ipsa ex perspiciatis. Eos ratione veniam eius provident, quae nobis accusantium molestiae consequatur amet explicabo in labore dolore? Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam qui earum, eos ipsa ex perspiciatis. Eos ratione veniam eius provident, quae nobis accusantium molestiae consequatur amet explicabo in labore dolore? Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam qui earum, eos ipsa ex perspiciatis. Eos ratione veniam eius provident, quae nobis accusantium molestiae consequatur amet explicabo in labore dolore? Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam qui earum, eos ipsa ex perspiciatis. Eos ratione veniam eius provident, quae nobis accusantium molestiae consequatur amet explicabo in labore dolore?</p>
            
          
!
            
              body {
  margin: 2em;
}
img {
  float: left;
  -webkit-shape-outside: polygon(66% 0%, 87% 55%, 70% 100%, 0% 0%);
  shape-outside: polygon(66% 0%, 87% 55%, 70% 100%, 0% 0%);

  clip-path: url(#snowflake);
  /* Chrome and WebKit bug with coordinate space when referencing SVG <clipPath>
   * https://code.google.com/p/chromium/issues/detail?id=417370
   */
  transform: translate(0,0);
}
            
          
!
999px
Loading ..................

Console