dynamically wait for layout to finish
refine static pdf output
add timeout for static layout
work around Firefox behaviour related to display: none and SVGLocatable::getBBox()