zweilove / css_splitter

Gem for splitting up stylesheets that go beyond the IE limit of 4095 selectors, for Rails 3.1+ apps using the Asset Pipeline.
MIT License
160 stars 47 forks source link

Splitting breaks if 4095th selector is nested within @media query #9

Closed jhilden closed 10 years ago

jhilden commented 11 years ago

If the 4095th selector is nested within a @media query, the stylesheet can't be properly split.

....

@media something {
  .selector-4095 {
    color: black;
  }
  .selector-4096 {
    color: white;
  }

}

We need to create a testcase and bugfix for this issue.

Some somewhat related discussion has already happened in #2

jhilden commented 10 years ago

should be fixed with #26