Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Sykje yn Support

Mij stipescams. Wy sille jo nea freegje in telefoannûmer te beljen, der in sms nei ta te stjoeren of persoanlike gegevens te dielen. Meld fertochte aktiviteit mei de opsje ‘Misbrûk melde’.

Learn More

Dizze konversaasje is argivearre. Stel in nije fraach as jo help nedich hawwe.

Fullscreen video disappears when using CSS transform on parent element

  • 5 antwurd
  • 3 hawwe dit probleem
  • 2 werjeftes
  • Lêste antwurd fan guigs

more options

I have a video element that opens in an overlay. The overlay is position: fixed, and the element inside of it is centered vertically & horizontally using position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);.

All of the above works just fine, until a user clicks the fullscreen icon, then the video disappears... You can still hear the audio, but the video disappears...

If I cancel the transform: translate(-50%, -50%); in the debugger, the video pops right back into place...

I have a <code>video</code> element that opens in an overlay. The overlay is <code>position: fixed</code>, and the element inside of it is centered vertically & horizontally using <code>position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);</code>. All of the above works just fine, until a user clicks the fullscreen icon, then the video disappears... You can still hear the audio, but the video disappears... If I cancel the <code>transform: translate(-50%, -50%);</code> in the debugger, the video pops right back into place...

Keazen oplossing

thanks, guigs2, but i'm not really looking for ways to make it work for me, but to make it work for everyone...

i realized after posting here that what i really wanted to do was submit a bug, so i did so here; seems to be getting some traction: https://bugzilla.mozilla.org/show_bug.cgi?id=1055977

cheers, Atg

Dit antwurd yn kontekst lêze 👍 0

Alle antwurden (5)

more options

If you toggle this feature in about config: browser.fullscreen.autohide to false.

Good reference http://www.w3.org/2010/05/video/mediaevents.html and http://css-tricks.com/NetMag/FluidWid.../Article-FluidWidthVideo.php


It is also possible to use the webkit fullscreen controls: http://www.thecssninja.com/demo/fullscreen/ and Fullscreen API and example: https://developer.mozilla.org/en-US/d.../Using_full_screen_mode#Browser_compatibility

more options

If you toggle this feature in about config: browser.fullscreen.autohide to false.

Good reference http://www.w3.org/2010/05/video/mediaevents.html and http://css-tricks.com/NetMag/FluidWid.../Article-FluidWidthVideo.php


It is also possible to use the webkit fullscreen controls: http://www.thecssninja.com/demo/fullscreen/ and Fullscreen API and example: https://developer.mozilla.org/en-US/d.../Using_full_screen_mode#Browser_compatibility

more options

If you toggle this feature in about config: browser.fullscreen.autohide to false.

Good reference http://www.w3.org/2010/05/video/mediaevents.html and http://css-tricks.com/NetMag/FluidWid.../Article-FluidWidthVideo.php


It is also possible to use the webkit fullscreen controls: http://www.thecssninja.com/demo/fullscreen/ and Fullscreen API and example: https://developer.mozilla.org/en-US/d.../Using_full_screen_mode#Browser_compatibility

more options

Keazen oplossing

thanks, guigs2, but i'm not really looking for ways to make it work for me, but to make it work for everyone...

i realized after posting here that what i really wanted to do was submit a bug, so i did so here; seems to be getting some traction: https://bugzilla.mozilla.org/show_bug.cgi?id=1055977

cheers, Atg

more options

Hi Atg, Happy to hear you found bugzilla :-) I will mark your post as the solution and let the conversation continue in the bug.

If there are any other questions we can help with, we are happy to.