The summary says it all. You can note this effect in carto.net/window.svg on the buttons.
Created attachment 12642 [details] First attempt This patch should fix the problem. I'll look whether there are problems too for other svg elements that create a viewport. Cheers, Rob.
Shouldn't you respect the overflow property in every case, not just on the SVG element? It's a little weird to have a tag name check like that in the render tree. r- to consider this, otherwise patch and test case look great.
Created attachment 12663 [details] Improved patch This patch should address Maciej's issue. Cheers, Rob.
Comment on attachment 12663 [details] Improved patch r=me
Committed by rwlbuis in r19115.