Comments (5)
It looks like this is your first issue. Welcome! 👋 One of the project maintainers will be with you as soon as possible. We appreciate your patience. To safeguard the health of the project, please take a moment to read our code of conduct.
from data.
I missed when functions.json
was added. As to me it should be merged back into syntaxes.json
. The types.json
is actually contains generic types, in other words types that has no syntax definition but a prose definition in CSS specs. Having a split in functions and other types makes no sense in terms of CSS.
from data.
I found that types.json
contain both prose-only types (such as <number>
) and types that do have syntaxes (such as <display-internal>
), meanwhile the schema for types.json
doesn't allow for a syntax
key. I could add a special case to split types into syntaxes.json
and types.json
based on the presence/absence of syntax
, but this dichotomy seems unnecessary 🤔 (I'll leave units.json
as it is despite of the fact that their types are "value" in Webref).
So there're two ways to move forward:
- Split any data in Webref of the "type" type into
syntaxes.json
andtypes.json
based on the presence/absence ofsyntax
. - Change the schema for
types.json
, and splitsyntaxes.json
intofuntions.json
andtypes.json
.
from data.
Thank you for opening this issue, and sorry for the long waiting time. 🙏
Unfortunately, I'm not very familiar with mdn/data, so I must be missing some important context here.
@yarusome As I understand, the combined syntaxes.json
makes it more difficult for you to diff mdn/data and w3c/webref. Can you explain the background of this diff?
The documented plan has been to deprecate this package in favor of w3c/webref, which is blocked by references to mdn-data in yari. Since this package is used a lot with 26 million weekly downloads, we need to have a very good reason for this breaking change.
If all the data in mdn-data can be derived from w3c/webref (can it?), then it might make sense to publish mdn-data v3 such that it extracts the data from w3c/webref and merely presents it in the current format. But I'm not sure what the advantage of mdn-data's representation is in comparison to w3c/webref?
from data.
@yarusome Can you please take a look at my previous comment?
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
- `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.