Бухвалова Юлия, Livejournal
Scalable Vector Graphics — формат векторных изображений, основанный на XML.
<path id="p-text-path"
d="m231.06494,94.11014c93.77408,..."/>
</path>
<text x="0" dy="10">
<textPath xlink:href="#p-text-path">
Текст
</textPath>
</text>
fill="hsl(50, 100%, 50%)"
fill="url(#gr-hot-cold-soft)"
fill="url(#pt-mosaic-colored)"
<linearGradient id="gr-simple"
x1="0" y1="0" x2="100%" y2="50%">
<stop stop-color="hsl(350,100%,45%)" offset="0"/>
<stop stop-color="hsl(45,100%,75%)" offset="50%"/>
<stop stop-color="hsl(200,100%,40%)" offset="100%"/>
</linearGradient>
<linearGradient id="gr-simple-stripes"
x1="0" y1="0" x2="30%" y2="30%"
gradientUnits="userSpaceOnUse" spreadMethod="repeat">
<stop stop-color="hsl(350,100%,45%)" offset="0"/>
<stop stop-color="hsl(350,100%,45%)" offset="33%"/>
<stop stop-color="hsl(50,100%,70%)" offset="33%"/>
<stop stop-color="hsl(50,100%,70%)" offset="66%"/>
<stop stop-color="hsl(200,100%,40%)" offset="66%%"/>
<stop stop-color="hsl(200,100%,40%)" offset="100%"/>
</linearGradient>
<radialGradient id="gr-radial-soft"
r="70%">
<stop stop-color="hsl(200,100%,40%)" offset="0"/>
<stop stop-color="hsl(45,100%,75%)" offset="50%"/>
<stop stop-color="hsl(350,100%,45%)" offset="100%"/>
</radialGradient>
<radialGradient id="gr-radial-soft-fxy"
fx="90%" fy="90%">
...
</radialGradient>
stroke: crimson;
stroke-width: 5;
stroke-linecap: butt
stroke-linecap: round
stroke-linecap: square
stroke-linejoin: miter
stroke-linejoin: round
stroke-linecap: square
stroke-dasharray: 5%;
stroke-dasharray: 7 15;
stroke-dasharray: 80 20 5 20;
<clippath id="clip-star">
<polygon points="98.499..." />
</clippath>
clip-path: url(#clip-star);
<clippath id="clip-text">
<text x="0" y=".88em" class="clip-text">Text</text>
</clippath>
.clip-text {
font: bold italic 6.5em/1 Georgia;
}
clip-path: url(#clip-text);
<mask id="mask" maskunits="userSpaceOnUse"
maskcontentunits="userSpaceOnUse">
<rect y="0" width="100%" height="100%" fill="black" />
<g stroke="gray" stroke-width="12" fill="white">
<circle cx="33%" cy="30%" r="20%" />
<circle cx="52%" cy="62%" r="32%" />
</g>
</mask>
<mask id="mask-soft" maskunits="objectBoundingBox"
maskcontentunits="objectBoundingBox">
<rect y="0" width="1" height="1"
fill="url(#mask-radial-gradient)" />
</mask>
<mask id="mask-lum-pattern">
<image xlink:href="your-image.png"
width="200" height="300" />
</mask>
mask: url(#mask);
<svg viewBox="0 0 200 200">
<g id="no">
<rect fill="#FF4646" width="200" height="200" rx="8"/>
<text x="28" y="130">No.</text>
</g>
<g id="yes" class="hidden">
<rect fill="#A2D529" width="200" height="200" rx="8"/>
<text x="18" y="130">Yes!</text>
</g>
</svg>
background: url(sprite.svg);
background: url(data:image/svg+xml;base64,PHN2Zy...);
background: url(data:image/svg+xml;utf8,<svg xmlns=...);
<svg>
<use xlink:href="#umbrella"/>
</svg>
.icon {
color: orangered;
}
.icon:hover {
color: yellowgreen;
}
.icon use {
fill: currentColor;
}
path {
stroke-width: 2;
stroke-dasharray: 550 0;
stroke-dashoffset: 570;
animation: dashoffset 8s infinite alternate;
}
@keyframes dashoffset {
100% {
stroke-dashoffset: 0;
}
}