Opera 10.52 Google Code Changes browser messed up

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

28. April 2010, 13:36:08

jeangrey

Posts: 15

Opera 10.52 Google Code Changes browser messed up

Version
10.52

Build
3370

Platform
Win32

System
Windows NT 5.2

http://code.google.com/p/fofix/source/detail?r=2038

Click one of the (+) to view the changes made and then get a working browser to see how it should look like. Used to work fine with previous Opera versions *sigh*.

7. May 2010, 22:22:13

claxozzt

Posts: 9

I see the same in any google code pages that tries to show a diff between revisions.
I'm on win xp sp3 32bits.
I seen the problem with Opera 10.51, 10.52, 10.53

I don't recall when exactly the problem begun, but I can confirm that Opera 10.10 displays _without_ problems the same pages.(tested at the moment I posting)

If it was not clear in the original poster message, the problem arises when clicking the link diff in the the page him posted, or, if you want a direct link to same style page, here there is:
http://code.google.com/p/los-cocos/source/diff?spec=svn953&r=953&format=side&path=/trunk/cocos/actions/base_actions.py

The current (faulty) view produced by opera looks as if lot of whitespace has been inserted between each pair of lines, like 8-10 lines.

8. May 2010, 01:53:32

Tomcat76

Posts: 4488

The problem arises due to tables residing in <pre> elements. New versions of Opera seem to take into account the whitespace in between the table elements (tbody, tr, etc). I don't know which behavior is "standards compliant", but this bit of code should work around the issue on Google:

div.diff>pre>table{white-space:nowrap}
div.diff>pre>table>tbody>tr>th,div.diff>pre>table>tbody>tr>td{white-space:pre-wrap}

It seems to do the trick for both example pages.
Tomcat "the farce is mine" 76 | WinXP Pro 32bit · JRE 7u21 · Default UA: Opera 9.27 (file extensions in cache & Google Images layout) | My computer | Download different Opera versions

8. May 2010, 03:51:47

claxozzt

Posts: 9

Thanks Tomcat76 for your post, it is interesting to know the ''why'.

But I'm lost about how to apply the workaround; I searched a little about Opera customization but no one seems to fit the notation ( possible customizations I found were UserJS Scripts, User CSS directory, opera:config#UserPrefs)
Could you give some pointer/clarification about how to apply your workaround ?

13. May 2010, 02:10:29 (edited)

Tomcat76

Posts: 4488

Sorry about the delay. This thread sunk deep smile

I don't remember whether site-specific UserCSS files work for subpages as well, but it's worth a shot. Save the bit of code I posted above into a file named "choose_some_name.css". Put it somewhere you won't delete it (eg, somewhere in your Opera Profile folder). Go to http://code.google.com/, right-click the page, select "Edit site preferences", click the Display tab, and click the Choose button to browse for the saved file. Click OK and check some Google Code pages to see if it worked.


Edit: I just tried it myself; it seems to work.
Tomcat "the farce is mine" 76 | WinXP Pro 32bit · JRE 7u21 · Default UA: Opera 9.27 (file extensions in cache & Google Images layout) | My computer | Download different Opera versions

17. May 2010, 20:27:45

claxozzt

Posts: 9

Thanks a lot, Tomcat76, it works as a charm !!!

16. June 2010, 11:46:59

thenic87

Posts: 2

This bug still exists in 10.60b1 (linux i386)
anyways, thanks for the workaround!

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