Safari Spacer Hack. It can be used to apply CSS rules only to Safari, or used in reverse to hide CSS rules only from Safari. It rests on a parsing bug in Safari, which understands attribute selectors but does not understand attribute selectors with whitespace in a specific (valid) position. Example:
div.test {color:green;}
div[class~=test] {color:inherit;}
div[class ~=test] {color:green;}
This will make the div with class="test" green in every browser except Safari.
Dave Hyatt responds: Relying on these bugs in what should be a standards compliant parser is wrong.
I applied this hack to my own templates in an attempt to left-align my navigation bar. (Right-aligning it makes the links disappear completely in Safari.) The hack worked as advertised, but left-aligning the links triggered another bug in Safari that makes the links unclickable. I give up. Given the choice between presenting unclickable links and presenting no links at all, I choose no links.
Given that I am indirectly employed by Apple through the training courses I teach, I feel I have reached the limits of what I can say about Safari. I wish the Safari development team all the best in their quest for standards compliance. They know they have a long road ahead of them, and of course there are many other priorities competing for their limited time and resources. As for me, it’s time to move on and pursue other interests.

