<?xml version="1.0"?> | |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> | |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xhtml="http://www.w3.org/1999/xhtml" viewBox="0 0 100 100"> | |
<foreignObject width="100" height="100"> | |
<style>a div { background-color: green; width: 100px; height: 100px } a:link div, a:visited div { background-color: red }</style> | |
<xhtml:a href="http://www.example.com/"><xhtml:div></xhtml:div></xhtml:a> | |
</foreignObject> | |
</svg> |