CSSStyleDeclaration.cssText - текстове представлення стилю CSS.
CSSStyleDeclaration.cssText;
CSSStyleDeclaration - об'єкт CSSStyleDeclaration.
cssText - властивість об'єкту CSSStyleDeclaration яка повертає/задає рядок у якому записані css стилі через ;. Наприклад: "color:red; border:0; text-align: center;".
Для об'єкту що повертає getComputedStyle() ця властивість тільки для читання.
var cs= getComputedStyle(document.getElementsByTagName('p')[0]);
alert(cs.cssText);
cs= document.getElementsByTagName('p')[0].style;
cs.cssText='color:red; border: 1 solid blue;';