Bug 1061660 - Fix some missing show transitions on BaseUI elements. r=alive

Flush the style after element creation so that animations associated with
the visible class play.
Merge pull request #24834 from Cwiiis/bug1061660-missing-visible-transitions

Bug 1061660 - Fix some missing show transitions on BaseUI elements. r=alive