Experimenting with SVG foreignObject
HTML
<svg width="100%" height="500">
<g transform="rotate(25 50 50) translate(50 20)">
<rect x="10" y="10" width="200" height="150" fill="yellow"/>
<foreignObject x="20" y="20" width="180" height="130">
<div xmlns="http://www.w3.org/1999/xhtml">
Wow, we have word-wrap in a container which is <em>rotated!</em>
<p>
Time to do some extra stuff
</p>
</div>
</foreignObject>
</g>
</svg>