Google Blogoscoped

Forum

Google CSS/Javascript Error

stefan2904 [PersonRank 10]

Monday, October 16, 2006
17 years ago2,328 views

why thera are css/javascript errors on google?
(javascript: see gmail :p)
css: fe:

.ch{cursor:pointer;cursor:hand}

double decleration? or just a mistake on my part?

Philipp Lenssen [PersonRank 10]

17 years ago #

CSS errors like these are quite frequent and may be known and wanted to achieve certain effects. For example, while the property "hand" is incorrect according to the W3C, I vaguely remember a certain browser needing it and not understanding pointer. Thus, this piece may mean "take 'pointer', or if you don't get a hiccup with 'hand', take 'hand'".

Other than the false property double declarations are legal, tho usually you'll see them in combination with the!important keyword. Example:

padding: 10px!important; /* Firefox and others */
padding: 20px; /* IE6 */

Forum home

Advertisement

 
Blog  |  Forum     more >> Archive | Feed | Google's blogs | About
Advertisement

 

This site unofficially covers Google™ and more with some rights reserved. Join our forum!