Comments (2)
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 <feature-type> {\n <feature-value-declaration-list>\n}
).
Sebastian
from data.
There are 4 cases with <var>
:
an-plus-b
syntax insyntax.json
-An+B
is realy complex and defined aside in spec. It's a generic type and should be defined intypes.json
. Andan-plus-b
syntax insyntax.json
should be replaced for another syntax<an-plus-b> | odd | even
minmax
syntax insyntax.json
- it's wrong syntax actually, two solutions here:- replace
min
andmax
for reference to syntax<length> | <percentage> | <flex> | min-content | max-content | auto
- definition becomeminmax( <new-syntax-name>, <new-syntax-name> )
- define new syntaxes
min
andmax
- definition becomeminmax( <min>, <max> )
- replace
- 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 inselectors.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)
- Appearance initial value is "none", not "auto" HOT 1
- Property background-position-x and -y not quite correct HOT 1
- Not sure if background-size initial "auto auto" is correct HOT 1
- Html elements types list HOT 1
- Issue with "outline-style": Formal Syntax incorrectly implies that all border-style values can be used. HOT 4
- Where the JSON format of the JavaScript API docs is located?
- aspect-ratio still marked as experimental HOT 3
- MDN incorrectly says some CSS properties support animations that actually don’t: “direction”, “text-orientation”, “unicode-bidi” (maybe more) HOT 12
- Making the CSS property `appliesto` values more specific HOT 9
- Localized strings for `background-position-x` percentages are wrong
- Incorrect formal definition for border-block
- Split and merge `syntaxes.json` into `functions.json` and `types.json` HOT 5
- `palette-identifier` doesn't have a definition HOT 1
- `ray-size` doesn't have a definition
- mask-origin and mask-clip use removed property margin-box HOT 3
- All counter-style keywords not listed HOT 3
- [meta] Add info about `release-please` requirements in PR template HOT 3
- mask-position Initial value HOT 6
- `ray()` syntax is incorrect HOT 1
- `overflow-clip-margin` syntax seems incorrect HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from data.