Something equivalent to CSS position:fixed?

This is a point to address actually, in my case though the layout is automatically adjusted to fit the whole diagram, scrolling/scaling accordingly.

If I manage to place the legend in a fixed position (with respect to the viewport), say in the bottom left corner, I guess I can update my ViewportBoundsChanged listener to also take it into account. So when I take the SVG snapshot, all the nodes will be in the right position.