In Firefox, Opera and IE I can get them via:
>> for (k in document.body.style) console.log(k) -> opacity background height textAlign . ... long list ... . pointerEvents
In WebKit the result is quite different:
>> for (k in document.body.style) console.log(k) -> cssText length parentRule getPropertyValue getPropertyCSSValue removeProperty getPropertyPriority setProperty item getPropertyShorthand isPropertyImplicit
Update: latest WebKit does enumerate over CSS properties in HTMLElement.style same way all the over browsers do.
The answer is
Thanks to Anton Byrna for his solution.
One problem still remains:
getComputedStyle()does not return shortcuts likebackgroundandborder.