Giter VIP home page Giter VIP logo

Comments (5)

mattfelten avatar mattfelten commented on May 20, 2024 6

From a linting perspective, I'd want that example to give a warning. Thinking about a name translation standpoint, e.g camel case to kebab case, those two names would be translated differently, color-text-primary and -color-textprimary respectively, and I'd expect that. So they are unique to me.

My vote is case-sensitive

from community-group.

ariarzer avatar ariarzer commented on May 20, 2024 2

I vote for the case-sensitive token's names. It will better for linting and consistency.
And, when it will translate for CSS custom property, for example, will be easy to linting a css-code too.

from community-group.

kevinmpowell avatar kevinmpowell commented on May 20, 2024

I'd want that example to give a warning

@mattfelten I completely agree. I think that may be sufficient. There may be environments that are case-insensitive where tokens would be used, but I can't think of any and those who operate in those environments can adapt as necessary.

from community-group.

dbanksdesign avatar dbanksdesign commented on May 20, 2024

I agree with @kevinmpowell and @mattfelten case-sensitive, but the spec should include a warning about potential name collisions and how toolmakers should deal with it.

Unlike other CSS properties, custom property names are case-sensitive.
https://www.w3.org/TR/css-variables-1/#defining-variables

from community-group.

ChucKN0risK avatar ChucKN0risK commented on May 20, 2024

Reviewed by the spec editors on 2021-11-02

Decision
The spec should include a warning about potential name collisions and how toolmakers should deal with it.

Action to be taken
Next version of specification will reflect these decisions.

We’re closing this issue for now, but may reopen it in the future if needed.

from community-group.

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.