Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

192
Vistas
Transparent background for HTML5 drag-and-drop ghost image firefox

In FF91.4.1esr, Linux Debian Bullseye, if I create a ghost image from a partially transparent png, a gray background is shown, instead of the webpage under the ghost image.

E.g. in this fiddle, created by someone else, I can see a gray box under the red and blue:

http://jsfiddle.net/c8p24q6y/

Is there anything I can do about it?

I tried setting ghostImg.style.background = 'white';, which gave me a white background.

I have also put the ghost image on the webpage independently of the dragged ghost image, and with the white background set, the background was white there, as well.

With background = transparent or none, on the webpage, the image was really transparent.

Which led me to believe that there is a layer BELOW the ghost image, to which I have no access:

layer1 <img>.src
layer2 <img>.background (transparent)
layer3 <div>.background (transparent)
layer4 browser-defined gray bedrock -> HOW TO REMOVE THIS?
layer5 the rendered webpage

Before tagging duplicate, I am aware of this question, it does not answer mine, and it is about Chrome:

Transparent background for HTML5 drag-and-drop ghost image

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda