CSSStyleDeclaration.item() - повертає назву властивості.
CSSStyleDeclaration.item( index );
CSSStyleDeclaration - об'єкт CSSStyleDeclaration.
index - індекс властивості, починається з 0. Від 0 до CSSStyleDeclaration.length-1.
item() - метод об'єкту CSSStyleDeclaration який повертає назву властивості стилю CSS по її індексу.
Аналогом є: CSSStyleDeclaration[index];
var cs= getComputedStyle(document.getElementsByTagName('p')[0]);
alert(cs.item(0) );
var cs= getComputedStyle(document.getElementsByTagName('p')[0]);
alert(cs[0] );
cs2= document.getElementsByTagName('p')[0].style;
alert(cs2.item(0) );