Giter VIP home page Giter VIP logo

Comments (9)

bartveneman avatar bartveneman commented on July 18, 2024 1

I'd be happy to give this a try. Would it bu useful to append something like this to the test array and expand the regex until it doesn't fail?

    '-5deg',
    '5deg',
    '5.5deg',
    '-5.5deg',
    '.5deg',
    '-.5deg',

from postcss-values-parser.

shellscape avatar shellscape commented on July 18, 2024 1

Indeed it should. Thanks for the heads up @glen-84 !

from postcss-values-parser.

shellscape avatar shellscape commented on July 18, 2024

Ah, s as a unit. Can you link to the spec for other valid time-units?

from postcss-values-parser.

bartveneman avatar bartveneman commented on July 18, 2024

Basically s and ms are allowed values. Level 2 defines that values may not be negative, but that note has disappeared from Level 3 onwards.

MDN provides examples with negative values, so might be useful to take that into consideration as well

from postcss-values-parser.

radeno avatar radeno commented on July 18, 2024

Any time sheet when this issue will be fixed?
Should be compatible with https://drafts.csswg.org/css-values-4/#numeric-types right?
So just unitRegexp should be updated or is it necessary to make bigger changes?
https://github.com/shellscape/postcss-values-parser/blob/master/lib/nodes/Numeric.js#L17

from postcss-values-parser.

shellscape avatar shellscape commented on July 18, 2024

@radeno that's probably what needs to be updated, and tests will need to be added as well. I would happily review a pull request for this.

from postcss-values-parser.

radeno avatar radeno commented on July 18, 2024

@bartveneman i tried to add angle values, but when 90deg was set then test fails. I don't have time to dig deeper. But time values support waits in PR.

from postcss-values-parser.

bartveneman avatar bartveneman commented on July 18, 2024

Ah, sorry, I missed that reference above 😬

from postcss-values-parser.

glen-84 avatar glen-84 commented on July 18, 2024

@shellscape Should this be closed? (by #87)

from postcss-values-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.