On Nov 22, 2007, at 12:19 AM, Gunlaug Sørtun wrote:
> chiara chiari wrote:
>> Hi guys, I need to filter a style rule for Safari and I was wondering
>> if there is any way to filter a dedicated css or if there is any
>> other way I can filter a stylesheet for FireFox and then use the main
>> one to give my rules to Safari (I am using separate css for IE7 and 6
>> already)
>
> Don't know if this Safari bug is present in latest releases...
>
> <http://www.christopherschmitt.com/2007/11/02/css-attribute-
> selector-bug-in-safari/>
>
> ...but if it is then it might work in reversed order - filter for
> Safari
> instead of other browsers.
>
> However, I'd like to see the case where such filtering is really
> necessary. All such filters tend to fail after a while, so they
> shouldn't be used for anything serious.
Another way to target Safari (and KHTML) is the following construction:
body:not(:root:root) selector { property:value }
Nobody else seems to support this (not Gecko, not Opera).
Documented here:
<http://thomas.tanreisoftware.com/?p=11#safari>
As Georg says, use with care and in the knowledge that those hackery
filters will break in the future, possibly sooner than later.
Philippe
---
Philippe Wittenbergh
<http://emps.l-c-n.com>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/