I'm having trouble getting selectivzr to work in IE ...

I'm having a scss rule which is also outputted in my no-queries file but Selectivizr doesn't seem to pick up on it.

    @include breakpoint($desk, true) {
      background: green;
      @include float-span(3);
      &:nth-child(4n) {
        @include float-span(3, 'last');
      }
    }

the no-query file gets included in the HTML as:

<style>@import url("http://local.desk02.bn/sites/all/themes/d02sgs/css/d02sgs.no-query.css?mui71k");</style>

but Selectivizr's "you need to know section" (see bottom of page on http://selectivizr.com/) list the following rules:

  • Style sheets MUST be added to the page using a <link> tag but you can still use @import in your style sheets. Styles defined in
    tags won't be parsed.
I've been looking for hours and can't figure out what's wrong ... this is about the only thing left I can think of but I'm thinking someone would have noticed this already because if this is the issue, it has never worked for anyone (with the no-queries css files).

Comments

Percept’s picture

I posted this just before heading home ... I'll see if I can get it to work on Monday by including the no-queries css files the "correct" way because I have no access to it at home.

Percept’s picture

Issue summary: View changes

formatter ate my tag

Percept’s picture

Ok, I tried replacing the conditional CSS files inclusion method to <link...> instead of <style>@import ...</style> but it's still not working. I'll have to keep looking. Can anyone else test if the selectivzr script works out of the box in an Omega sub-theme?

fubhy’s picture

Title: Selectivizr not working, current Omega implementation doesn't follow selectivzr guidelines. » Selectivizr not working
Category: bug » support
Status: Active » Fixed

the no-query file gets included in the HTML as:

@import url("http://local.desk02.bn/sites/all/themes/d02sgs/css/d02sgs.no-query.css?mui71k");

but Selectivizr's "you need to know section" (see bottom of page on http://selectivizr.com/) list the following rules:

Style sheets MUST be added to the page using a
tag but you can still use @import in your style sheets. Styles defined in tags won't be parsed.

You have to enable CSS aggregation. This is how Drupal output CSS if you don't have CSS aggregation enabled (@import), once enabled, it will use link tags. Otherwise this behavior is expected.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

update