GithubHelp home page GithubHelp logo

@-webkit-keyframes not saved about stylebot HOT 8 CLOSED

ankit avatar ankit commented on June 2, 2024
@-webkit-keyframes not saved

from stylebot.

Comments (8)

rduenasf avatar rduenasf commented on June 2, 2024

That's because the CSSParser used by stylebot doesn't support that rule

from stylebot.

ankit avatar ankit commented on June 2, 2024

Right. It may / may not be hard to add support for this rule, but I'll give it a shot.

from stylebot.

rduenasf avatar rduenasf commented on June 2, 2024

You could check out the lastest version of the JSCSSP. It has support for many moz-* rules and alike. I think it should be way easier to add the support to that codebase instead of coding the support all by yourself.

from stylebot.

ankit avatar ankit commented on June 2, 2024

Great idea, thanks! I didn't think that the parser was being actively
maintained. The latest version also fixes the 'ul li:nth-child(' crash
issue.

He should really host the code on Github, it'll be much easier to track
changes

On Mon, May 16, 2011 at 11:12 AM, rduenasf <
[email protected]>wrote:

You could check out the lastest version of the JSCSSP. It has support
for many moz-* rules and alike. I think it should be way easier to add the
support to that codebase instead of coding the support all by yourself.

Reply to this email directly or view it on GitHub:
#49 (comment)

from stylebot.

rduenasf avatar rduenasf commented on June 2, 2024

Grammar:

http://developer.apple.com/library/safari/#documentation/appleapplications/reference/SafariCSSRef/Articles/OtherStandardCSS3Features.html

from stylebot.

rduenasf avatar rduenasf commented on June 2, 2024

I'm adding support for this now...

from stylebot.

rduenasf avatar rduenasf commented on June 2, 2024

@ankit I added support for this, also I rewrote almost entirely the css-utils lib to make easier for us to add new rules or change the format of the formatted CSS in the fure.

As a sidenote, we should add a more foolproof way to check if a rule in the stylebot's rules object is either a comment, an error, a webkit-keyframes rule or a normal style rule. Currently we have the comment field (and now __isAnimation too) but those aren't robust ways to check for rule type...

I was thinking we could have named objects just to check this with instanceof/typeof, but that implies to write a rules updater...

from stylebot.

ankit avatar ankit commented on June 2, 2024

Nice.

You're right. This isn't the best way to do this. We can keep this on the back burner and think about it later maybe.

from stylebot.

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.