jonkemp/inline-css

Add sortAlphabetically option

開放

#61 建立於 2017年3月30日

 (4 則留言) (0 個反應) (0 位負責人)JavaScript (78 個分叉)github user discovery
feature requesthelp wanted

倉庫指標

星標
 (438 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南