jonkemp / jonkemp/inline-css

Add sortAlphabetically option

Open
#61 4 comments 0 reactions 0 assignees View on GitHub
feature request help wanted
Dominant language
JavaScript
Stars
438
Forks
77
PR merge metrics
No merged PRs in 30d

Description

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:
```

...

```
which means that even in old IEs `230px` is overwritten by `auto`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.