PDA

View Full Version : Why is Chrome's import look distorted?


cnewtonne
09-23-2011, 08:01 AM
I'm trying to figure out why when doing cntrl+c followed by win+v, my UR imports look great using firefox 6, but distorted with Chrome 14. See attached images.

1) Can you please try it yourself and confirm this behavior? Please use this link http://www.oracle.com/us/products/database/options/real-application-clusters/index.html
2) Is there an explanation for this behavior?
3) Any fix or workaround?

Thank you.

kinook
09-23-2011, 09:34 AM
Looks like a bug in Chrome (or an incompatibility between the HTML format it puts on the clipboard and how it's displayed in other browsers). If you download, extract, and run http://www.kinook.com/Download/Misc/ClipSpy.zip, then copy the page selection from Chrome, start ClipSpy, select HTML Format, choose File | Save Selected Data and save as xyz.html, then open the file in IE or Firefox, it displays the same way. The only solution would be for Chrome to be updated to generate HTML that is compatible with IE and Firefox.

cnewtonne
11-12-2011, 02:35 PM
I think I have identified the cause the verified it. It is a know issue/variance/behavior of webkit based browsers like chome and safari. The rendering engine does not honor the 'no-repeat' property of 'background-image'. This is why if you look carefully at the distorted image above, you see the background arrow image is repeating.

So, if you change this line ....
background-image: url(http://www.oracleimg.com/us/assets/red_arrow_box.gif)
to ...
background-image: url(http://www.oracleimg.com/us/assets/red_arrow_box.gif) no-repeat

The page will display correctly. Here's a reference to a similar bug
http://code.google.com/p/chromium/issues/detail?id=35697

So far, I have found not fix or workaround.

cnewtonne
11-12-2011, 02:49 PM
This may help at scripting level http://www.ehow.com/how_12143187_stop-background-patterns-repeating-chrome-safari.html