jonkemp/inline-css

Add sortAlphabetically option

オープン

#61 opened on 2017/03/30

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (78 件のフォーク)github user discovery
feature requesthelp wanted

Repository metrics

Stars
 (438 個のスター)
PR merge metrics
 (30d に merged 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.

コントリビューターガイド