In Firefox, Opera e IE li posso ottenere tramite:Come ottengo tutte le proprietà CSS supportate in WebKit?
>> for (k in document.body.style) console.log(k) -> opacity background height textAlign . ... long list ... . pointerEvents
in WebKit il risultato è ben diverso:
>> for (k in document.body.style) console.log(k) -> cssText length parentRule getPropertyValue getPropertyCSSValue removeProperty getPropertyPriority setProperty item getPropertyShorthand isPropertyImplicit
Aggiornamento: ultima WebKit does enumerate over CSS properties in HTMLElement.style stesso modo tutti gli oltre i browser lo fanno
Iterating 'document.body.style' fornisce le proprietà di stile Javascript. 'document.defaultView.getComputedStyle (document.body, '')' ha solo le proprietà CSS. per esempio. 'backgroundAttachment' vs.' background-attachment'. –
un modo per ottenere tutti i loro possibili suggerimenti di valori come 'inherit', percentuale, text-bottom; per ognuno di loro. anche se si usa js. –