Playback controls are visible even when the media element is set to visibility:hidden. To reproduce: 1. Open the attached page 2. Click the "visibility" href to hide the <video> element 3. Controls still visible. 4. Show the element by clicking the "visibility" link again 5. Start the movie playing so the controls hide 6. Click the "visibility" href to hide the <video> element 7. Mouse over the hidden <video> element 8. Controls show up again.
Created attachment 23860 [details] test case
Also, the controls never show up again if element is set to visibility:hidden while it is also display:none. 1. Open the attached page 2. Click the "display" link to set <video> element to display:none 3. Click the "visibility" link to set visibility:hidden 4. Click the "display" link to set display:block 5. Click the "visibility" link to set visibility:visible The controls aren't visible and don't ever show up unless you make the element visible while it is display:none.
Created attachment 23861 [details] proposed patch
This was landed by Eric Carlson in r37470.