Attacking Chrome
Last Updated on Wednesday, 09 September 2009 10:16
Apparently Google's new browser Chrome, is based on the same technology as Apple Safari. I discovered this fact while searching for a way to apply Chrome / Safari specific CSS styles. I came across a number of *hacks* (which I personally would rather avoid using) some more complex, and frankly scary, than others. The following ?hack? came from Martin Ivanov's blog, dated Oct 1, 2008:/* Google Chrome hack */
body:nth-of-type(1) .elementOrClassName
{
/* properties go here */
}
/* Safari hack */
body:first-of-type .elementOrClassName
{
/* properties go here */
}