• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Use JavaScript to override minimum font setting in Opera?

 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a JavaScript function that gradually decreases the text size in an element until it disappears. It does this by using setTimeout to recursively call itself, decreasing the element's style.fontSize until it reaches 0px. Then, to make sure it's vanished, I set display to none.

The issue is that Opera (unlike Safari, Firefox, and Chrome) appears to be enforcing its minimum font size during this process. So the text dwindles down to about 8px, and then stays there until the iterations finish and display is set to none.

So can I use JavaScript to override this setting in Opera, and then put it back when I'm done? (I'm guessing not, but...)
 
reply
    Bookmark Topic Watch Topic
  • New Topic