Giter Club home page Giter Club logo

Comments (3)

jvennix-rmn avatar jvennix-rmn commented on June 5, 2024

+1

from grunt-stripmq.

jvennix-rmn avatar jvennix-rmn commented on June 5, 2024

Actually, 0\0 seems to work, the problem is when I pass this through sass I end up with 0 \0, which fails:

TypeError: Cannot read property '1' of null
    at /Users/jvennix/Projects/grunt-stripmq/node_modules/css-mediaquery/index.js:105:36
    at Array.map (native)
    at /Users/jvennix/Projects/grunt-stripmq/node_modules/css-mediaquery/index.js:103:42
    at Array.map (native)
    at parseQuery (/Users/jvennix/Projects/grunt-stripmq/node_modules/css-mediaquery/index.js:88:34)
    at Object.matchQuery [as match] (/Users/jvennix/Projects/grunt-stripmq/node_modules/css-mediaquery/index.js:21:12)
    at /Users/jvennix/Projects/grunt-stripmq/tasks/lib/stripmq.js:11:28
    at Array.reduce (native)
    at stripMediaQueries (/Users/jvennix/Projects/grunt-stripmq/tasks/lib/stripmq.js:9:48)
    at StripMQ (/Users/jvennix/Projects/grunt-stripmq/tasks/lib/stripmq.js:43:12)

I will investigate to see if there's a way to prevent this behavior in sass. I don't see the point of supporting a malformed hack for IE here.

from grunt-stripmq.

oller avatar oller commented on June 5, 2024

+1 for this issue with sass compiling causing stripmq to error.

In the meantime, I found a workaround using a slightly different IE Media Query hack which stripmq doesn't have such a problem with:

@media screen\0 {
  ....
}

Props to : http://keithclark.co.uk/articles/moving-ie-specific-css-into-media-blocks/media-tests/ for the media query hacks.

from grunt-stripmq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.