jonkemp/inline-css

Add sortAlphabetically option

Aperta

#61 aperta il 30 mar 2017

 (4 commenti) (0 reazioni) (0 assegnatari)JavaScript (78 fork)github user discovery
feature requesthelp wanted

Metriche repository

Star
 (438 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

I would appreciate adding of sortAlphabetically option, which would be set to true in default (to be compatible with older versions). That's because I need special CSS attributes for older IEs starting with underscore to be defined after their standard relatives, but inline-css sorts them before their standard relatives. That means the standard attribute overwrites its behaviour.

Before inlining:

div {
    width: auto;
    _width: 230px;
}

After inlining:

<div style="_width:230px;width:auto;">...</div>

which means that even in old IEs 230px is overwritten by auto.

Guida contributor