GithubHelp home page GithubHelp logo

Comments (8)

davidtheclark avatar davidtheclark commented on June 19, 2024

Does anybody know about operators other than + - * and / that we'd need to check?

from stylelint.

MoOx avatar MoOx commented on June 19, 2024

Not sure there is others. (Not for calc() at least)

from stylelint.

jeddy3 avatar jeddy3 commented on June 19, 2024

Same, don't know of any others. http://www.w3.org/TR/css3-values/#calc

from stylelint.

davidtheclark avatar davidtheclark commented on June 19, 2024

@MoOx raised a point here: #62 (comment)

But for function-operator-space it's a bit more tricky since you can have +10% value (see color function spec).

Yeah, so the whitespace is significant to the language not just the style around + and -, cf. http://www.w3.org/TR/css3-values/#calc-syntax. (And for the +10% example cf. http://dev.w3.org/csswg/css-color/) Does that mean we should restrict this rule to calc() only? calc-operator-space?

from stylelint.

MoOx avatar MoOx commented on June 19, 2024

calc-operator-space looks like an edge case, maybe we can postpone that.

from stylelint.

davidtheclark avatar davidtheclark commented on June 19, 2024

Unsure where this conversation left off. Let's clarify: Do we want calc-operator-space? It seems like the only situation we're aware of where function-operator-space would actually apply.

I use calc() enough in my stylesheets that I think that would be a valuable rule.

from stylelint.

MoOx avatar MoOx commented on June 19, 2024

If you want to do it, go :)
I was just thinking it can be low priority. Do whatever you need ;)

from stylelint.

davidtheclark avatar davidtheclark commented on June 19, 2024

OK, got it.

from stylelint.

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.