Complete code to reproduce https://github.com/d3/d3-transition/issues/47. Open the console to see what gets printed.
Built with blockbuilder.org