jonkemp/inline-css

Add sortAlphabetically option

Open

#61 建立於 2017年3月30日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)JavaScript (80 fork)github user discovery
feature requesthelp wanted

倉庫指標

Star
 (440 star)
PR 合併指標
 (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.

貢獻者指南