Giter VIP home page Giter VIP logo

Comments (4)

dasilvacontin avatar dasilvacontin commented on August 13, 2024

I couldn't reproduce the error: http://jsfiddle.net/Lqdtvy2z/.

Can you provide a failed test case?

from jss.

redders6600 avatar redders6600 commented on August 13, 2024

Hi @dasilvacontin - check the console of your fiddle - jss is not being defined because github is serving the file with the wrong MIME type, so whilst it looks like the example is working as intended, the rule never gets set in the first place.

I replaced the reference to the github resource with a link that does get served with the right MIME type using rawgit, and this is the result.

As you can see remove does not work when passed a selector. I can repro this in my own environment too.

from jss.

dasilvacontin avatar dasilvacontin commented on August 13, 2024

Wow, what a fail, thanks for the heads up @redders6600! It would be nice to fix this, indeed.

from jss.

redders6600 avatar redders6600 commented on August 13, 2024

I looked into this and worked out what the issue is - the getRules function forces the selector to lowercase. This is fine for elements, but classes can have uppercase letters (as in this example).

To workaround with the current code, use styles that use all lowercase characters, but I guess this is something that should be updated in JSS.

Similarly, ensure you use the :: pseudoselector syntax when passing to remove instead of :.

from jss.

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.