inline-css
inline-css copied to clipboard
Add sortAlphabetically option
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
.
Hey, I think, that for now everything is sorted alphabetically, am I correct?
That causes big issue - I have one element, let's say table.content
and styles for table in some general css file: table {margin-top: 100px;}
and in my personal css file rule for table.content { margin: 0 ;}
. After bundling and inlining those style sheets, styles for table comes after styles for table.content, so in the resulting HTML the table has 100px margin top (which is against css specificity).
I think that is a major bug...
+1
+1
+1