Giter VIP home page Giter VIP logo

Comments (2)

ilessiivi avatar ilessiivi commented on July 22, 2024 1

The case insensitive flag on the regex in grammars/css.cson#L625 seems to be the cause of this issue (there's a Background in the pattern next line).

Removing the case insensitive flag would fix the incorrectly identified deprecation of background as a transition-property but would cause other issues when the deprecated CSS2 system colors might not get detected. It was allowed by the spec to use these system colors as all lowercase too.

A better solution would be to rewrite the regex in question to match the scenarios in which the deprecated CSS2 system colors might have been used. Unfortunately I'm not familiar enough with the grammar syntax or the deprecated spec to do this.

Another solution could be dropping off the CSS2 system color detection as irrelevant. I don't have any statistics to back this up, but these system color properties probably weren't very widely used, and they certainly aren't today.

I was going to create a PR to remove the case insensitive flag from the regex, but perhaps this needs a bit more discussion first.

from language-css.

yanxiaobo avatar yanxiaobo commented on July 22, 2024

same problem

from language-css.

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.