Code Monkey home page Code Monkey logo

Comments (3)

sabberworm avatar sabberworm commented on May 6, 2024

None of this is valid CSS3. The asterisk is a hack to hide the rule from newer browsers and the filter property is IE-only and also deprecated as of IE 9. These rules should be put in an old-IE-only stylesheet which can be included in conditional comments. Using hacks like these is very discouraged as it triggers lenient CSS parsing in browsers and I will not be modifying PHP-CSS-Parser to accommodate these.

from php-css-parser.

dereuromark avatar dereuromark commented on May 6, 2024

that still doesnt help. the script should not abort but ignore those (or remove or whatever). its currently totally useless because every one of those 20 css files I tried failed just because some special tricks are not handled gracefully. :(
and pretty much every common css library out there has some of them in their css.

from php-css-parser.

sabberworm avatar sabberworm commented on May 6, 2024

Then by all means, fork the repository and create your lenient parser. It’s just not a use case I’ve ever come across and I’m not willing to maintain this much code that I’m never going to use.

from php-css-parser.

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.