1
Fork 0
svg-foreign-object-readme/test.svg

25 lines
505 B
XML
Raw Permalink Normal View History

2024-01-28 17:24:07 +00:00
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
<style>
div {
background: pink;
font: 12px serif;
padding: 10px;
}
.red {
color: red;
}
.green {
color: green
}
</style>
<foreignObject x="20" y="20" width="160" height="100">
<div xmlns="http://www.w3.org/1999/xhtml">
<p class="red">This is red color</p>
<a href="//example.com" class="green">This is green color</a>
</div>
</foreignObject>
</svg>