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.


Thanks, Allison


Sent by Ben Curtis on 9 November
<http://archivist.incutio.com/viewlist/css-discuss/November+2005>  2005
17:05

On Nov 3, 2005, at 4:55 AM, [EMAIL-REMOVED]> [EMAIL-REMOVED]>  
wrote:
 
>  /*\*/
>  html>body*.info_box_top_left {background-color: red; }
>  /**/
> 
> I have been using this. Is it a valid hack for safari only??
 
 
Sorry for the delayed response.
 
IMO, this is a bad idea. You should only Hack The Dead(tm). Safari is  
a living browser, in active development. You have no idea whether  
this hack will stop working tomorrow, or worse, fall out of sync with  
the rendering bug you are trying to fix. Also, I'm assuming that you  
ask "is this a valid hack" meaning "does it work?" and not meaning  
"is it valid CSS?" because then, no, it does not validate.
 
This is a parse error in their engine, but a fairly benign one that  
is easy for them to fix -- and indeed some might say it might not be  
an error, so other browsers might pick it up. The bug here is that  
Safari seems to treat matches on /\s*/ as a descendant selector,  
instead of matches on /\s+/. One character change in the source code  
makes this bug a pretty easy fix, no?
 
Since Safari is being developed (versions 1.3.x and 2.0.x are both  
active), I would only use hacks for it that are known to target  
versions 1.0-1.2.x. Targeting current versions opens you up to  
problems. In my experience, though, there is nothing Safari needs  
hacking for except the oversized background-repeat bug.
 
-- 
 
     Ben Curtis : webwright
     bivia : a personal web studio
     http://www.bivia.com
     v: (818) 507-6613

 

 

Allison Bloodworth

Principal Administrative Analyst

e-Berkeley Program Office

University of California, Berkeley

(415) 377-8243

[EMAIL PROTECTED]

 

______________________________________________________________________
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