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.

贡献者指南