jonkemp/inline-css

Add sortAlphabetically option

Offen

#61 geöffnet am 30.03.2017

 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (78 Forks)github user discovery
feature requesthelp wanted

Repository-Metriken

Stars
 (438 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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.

Contributor Guide