On Nov 9, 2005, at 12:33 PM, Allison Bloodworth wrote:

> What is the hack for the safari oversized background-repeat bug? I  
> seem to
> be having this problem right now. I found this URL referred to on  
> another
> page (http://www.holovaty.com/blog/archive/2003/01/09/2152), but  
> apparently
> he doesn't want us to use this hack anymore because it's been removed:
> http://diveintomark.org/safari/csshacks/safari-spacer-hack.html.

This describes that hack. It only worked on beta versions.
http://www.dithered.com/css_filters/css_only/safari_spacer_hack.html

The oversized background-repeat bug (don't know if anyone's formally  
described/named it) involves Safari failing to recognize no-repeat on  
background images that are larger than the area they cover. Because  
they are larger, and no-repeat is desired, you would only see this in  
cases where you shift the position of the background off the edge,  
and so it starts to repeat with an offset. (My Bivia homepage http:// 
www.bivia.com illustrates this bug nicely, since it uses a rather  
outdated technique of overlaping backgrounds to give the appearance  
of translucency -- very state-of-the-art in 2001!)

The best thing to do with Safari is re-code to avoid the need for a  
hack. That said, the original poster gave a hack that works on all  
current versions of Safari (AFAIK):

        html* your_regular_selector { /* styles */ }

I believe the source of this is here:
http://www.stormdetector.com/hacks/safarihack.html

It's not a very good hack, because it isn't valid and isn't future  
compatible, since it Hacks The Living(tm). You should only Hack The  
Dead, so you know the hack won't have unintended consequences as new  
versions get released. Something I explored but never finished up and  
published that may be considered a Dead-Safari hack uses case  
sensitivity:

        http://www.bivia.com/sandbox/safari-hack/

This page tries three variations on a case-sensitivity hack, and the  
Basic and Child versions no longer get applied by Safari 2.0.x or  
1.3.x. (The Alternate version does still Hack The Living, and so is a  
Bad Thing.) View the source to see how it works (note: the case of  
the CSS declaration does not match the case of the HTML class value),  
but if your problem is the current versions of Safari then it won't  
help much without causing more problems later.

-- 

     Ben Curtis : webwright
     bivia : a personal web studio
     http://www.bivia.com
     v: (818) 507-6613




______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to