Questions tagged [getcomputedstyle]

98 questions
1
vote
1 answer

Firefox won't display hidden div when shown using jQuery

I'm building a website that has a floating vimeo iframe in the center. By default, the vimeo container is set to "display:none;". Once the play button is clicked, I use jQuery to fade the iframe in. It works in all browsers except for Firefox. I'm…
Eric Wood
  • 579
  • 2
  • 9
  • 22
0
votes
2 answers

Computed Style not working with overwritten CSS variables

I'm making a website search engine like Google, and when a thing is visited I want to it turn green and change a tooltip. I use :visited to do that, and the code changes it to purple and sets a variable --visitedBSA to true. The problem is, in my…
Slothscript
  • 103
  • 9
0
votes
1 answer

getComputedStyle: how to get the height defined on CSS instead of the actual rendered height?

I have this code: