"default values" for CSS got broken somehow?

Forums » Opera for Windows/Mac/Linux » Opera browser

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

24. May 2010, 14:44:30

isemenov

Posts: 9

"default values" for CSS got broken somehow?

Recently I noticed that many sites started looking weird with over-sized fonts. As I am a web developer myself, I could track the problem down to Opera's default CSS values (see attached). Looks like the following CSS rule was somehow added to the default styles:
table { font-size: 16px; }

Screen shot 2010-05-20 at 8.16.52 PM.png

I didn't manage to find these settings anywhere in Opera config files. What worked for me is deleting the entire folder /Users/semenov/Library/Preferences/Opera Preferences, however a recursive grep for both "font-size" and "16px" didn't find anything related to the problem.

Questions:
1. How could I possibly alter the CSS defaults? Is that possible via the UI at all?
2. I can live with re-configuring Opera once, however I would like to know where can I find and fix the CSS defaults if the problem repeats?

Thanks.

24. May 2010, 18:00:41

lucideer

a B person

Posts: 5114

The only thing I can think of is <a href="opera:config#Minimum Font Size">this</a> but I guess you can't really check if that was the problem as you've now deleted your original config.

24. May 2010, 18:34:01

Nailz

Posts: 754

Originally posted by isemenov:

1. How could I possibly alter the CSS defaults? Is that possible via the UI at all?
2. I can live with re-configuring Opera once, however I would like to know where can I find and fix the CSS defaults if the problem repeats?



The default in my Opera is "font-size: use-lang-def". Have you touched any of the font settings? Prefs -> Advanced -> Fonts. Minimum font size maybe?

25. May 2010, 17:04:32

isemenov

Posts: 9

> The only thing I can think of is opera:config#Minimum%20Font%20Size but I guess you can't really check if that was the problem as you've now deleted your
original config.

No, I didn't actually delete my original config, I backed it up. I just restored it for a minute and checked your suggestion. The minimum font size is set to 9, same as in a brand new config folder.

Also, please note that the font size is broken in HTML tables only (as can be confirmed by the screenshot above). For instance, in one of my own projects (which is all based on divs and spans), only the third-party date picker was affected, as it was based on HTML tables.

13. February 2011, 14:11:39

kalligator

Posts: 10

I have the same problem as the OP, Opera's default css for table
font-size: use-lang-def;
when it takes precedence over website's css due to specificity, displays a larger font.
Could I revert to the original setting somehow?

Version: 11.01
Build: 1190
System: Windows NT 6.1 (Win7 Pro 64bit)
Browser identification: Opera/9.80 (Windows NT 6.1; U; en) Presto/2.7.62 Version/11.01

Forums » Opera for Windows/Mac/Linux » Opera browser