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.

贡献者指南