I was asked to review a few issues on a theme I based on radix on IE9 and it was a good set of hours until I realised I was likely hitting the 4095 limit of IE.

http://stackoverflow.com/questions/9906794/internet-explorers-css-rules-... and http://demos.telerik.com/testcases/4095issues.html.

But I did know about the css splitter in the config.rb file for compass and after a lot of trial and errors I come across a few bugs:

- First, if the file has more than 8190 selectors, you would end up with an ie.css file that only contains the last few selectors and you will miss the second file because it will be overwritten.
- Second, for some reason, not forcefully closing the file was causing the ie.css not to be completely flushed running compass watch (at least on my computer - osx 10.10.5).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hanoii created an issue. See original summary.

hanoii’s picture

Status: Active » Needs review
FileSize
1.13 KB

Attached is patch for the ruby extension that sorted out the two bugs, first it will append suffixes to the ie file, doing:

ie.css (first)
ie-2.css (second)
ie-3.css .... and so on.

It also forcefully close the file when the splitting is finishing making sure the last bits of the rules are flushed to the split file.

hanoii’s picture

FileSize
1.13 KB
397 bytes

Removing an ; (it would have worked anyway) following the same format of the whole file.

shadcn’s picture

Thanks. We'll review the patch this week.

shadcn’s picture

Status: Needs review » Closed (outdated)

Closing this as outdated. Feel free to reopen if not. Thank you.