Safari rendering colors differently at different sizes

Originator:pineboxpirate
Number:rdar://12626248 Date Originated:02-Nov-2012 03:37 PM
Status:Open Resolved:
Product:Safari Product Version:
Classification:Serious Bug Reproducible:Always
 
If the active display color profile was anything other than sRGB at launch, Safari displays the colors in untagged images differently between different sizes.

Steps to Reproduce:
1.) Ensure that the display color profile is not sRGB in settings. If it is, change it, then log out and back in.
2.) Open Safari.
3.) Navigate to a page with smallish, untagged (no ICC color profiles) images set to the same color as the background. I created the following page as an example: http://lanausee.com/files/bug/bug.html
4.) If the colors appear as they should, refresh the page once.

Expected Results:
The colors in the untagged images would be displayed the same regardless of their sizes.

Actual Results:
So long as the image asset is large enough (I haven’t been able to figure out the threshold), and it isn’t scaled down, the colors display correctly. Otherwise the image is rendered darker.

Regression:
I have tried this on multiple user accounts.

Notes:
My example page renders as expected (with the images matching their backgrounds) in Firefox, Opera, Google Chrome, and even Quick Look. The problem only appears in Safari and the WebKit nightly builds (under the conditions outlined above). Each line on the example page displays two image files. The original is 151 pixels wide and tall. The cropped is exact same image, cropped to 150 pixels. These should render the same color in Safari, but they do not. Also when the original image file is scaled down using CSS, it renders darker.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!