Skip to content

Truly independent web browser

486 B
Raw Blame
<!doctype html>
<style>
* { margin: 0; padding: 0; }
svg { display: block; }
foreignObject { display: flex; }
#abs { position: absolute; left: 15px; top: 10px; width: 50px; height: 40px; }
#item { width: 30px; height: 20px; }
</style>
<svg width="300" height="200">
    <foreignObject x="20" y="30" width="200" height="120">
        <div xmlns="http://www.w3.org/1999/xhtml" id="item"></div>
        <div xmlns="http://www.w3.org/1999/xhtml" id="abs"></div>
    </foreignObject>
</svg>