Code Monkey home page Code Monkey logo

Comments (2)

SebastianZ avatar SebastianZ commented on August 22, 2024

I'm definitely for this, as it would make the syntaxes much more readable (and even save some characters).

I just want to note that we will then need to find a solution for the formatting we currently use (i.e. <var> [used to indicate variables like in minmax( <var>min</var>, <var>max</var> )] and \n [used for line breaks like in &lt;feature-type&gt; {\n &lt;feature-value-declaration-list&gt;\n}).

Sebastian

from data.

lahmatiy avatar lahmatiy commented on August 22, 2024

There are 4 cases with <var>:

  • an-plus-b syntax in syntax.json - An+B is realy complex and defined aside in spec. It's a generic type and should be defined in types.json. And an-plus-b syntax in syntax.json should be replaced for another syntax <an-plus-b> | odd | even
  • minmax syntax in syntax.json - it's wrong syntax actually, two solutions here:
    • replace min and max for reference to syntax <length> | <percentage> | <flex> | min-content | max-content | auto - definition become minmax( <new-syntax-name>, <new-syntax-name> )
    • define new syntaxes min and max - definition become minmax( <min>, <max> )
  • In description of pseudo syntax in selectors.json. It's quite strange why for pseudo is using complete rule syntax, e.g.
  ":active": {
    "syntax": ":active { <var>style properties</var> }",
    "groups": [
      "Pseudo-classes"
    ],
    "status": "standard"
  },

I think { <var>style properties</var> } is odd and should be removed.

  • :any-link syntax in selectors.json. Currently syntax is :any-link( <var>style properties</var> ). It's a mistake, since :any-link is not a functional pseudo (and here means { <var>style properties</var> } I guess).

from data.

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.