-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adopt browser-compat-data to show compatibility in hover / completion #102
Comments
Here's the pseudo-class coverage for Unless otherwise noted, the name of the selectors in the data repo can be mapped to the For example:
Psuedo-class coverage:
|
I looked through css-schema.xml and found a few that are missing from both
Most of these are non-standard. I also excluded quite a few that are vendor prefixed. I doesn't look like any of them have MDN pages either. I opened an issue to get these added: mdn/data#241 |
There is one other consistency, and that's that the For psuedo-class function selectors, there's not much consistency. Just assuming that |
For properties, you can map anything in There are probably a few properties missing from each dataset, but for the most part it should map cleanly. Examples:
|
@octref so it looks like things should map between the two datasets pretty well ^_^ |
@connorshea Thanks a lot for your hard work! Those information will definitely come useful when I add support for browser compat data. As for the nonstandard pseudo selectors, I don't think they should end up in mdn/data because MDN then also need pages dedicated to explaining them. For us we can consider either:
|
Some notes while studying the data:
Ideas
Thoughts
Actionable
|
Also worth noting for the BCD data: there’s an implicit assumption that support data is ordered such that the most recent support data for a browser is at the top (e.g. Chrome 57 is true, then Chrome 55 has the feature behind a flag). So you should be able to parse just the first support entry for each browser, assuming you don’t need any info on prefixes for past versions, etc. Unfortunately this isn’t enforced in the codebase by any automated tools, though there is an issue to make it happen: mdn/browser-compat-data#1596 |
@aeschli I pushed a WIP PR. See #105 I have some questions regarding the presentation of the browser compat data. I would like to display it this way:
I feel the current display is too much noise. Don't believe any user is interested to learn that |
I'd rather not make that change.
|
@aeschli I'm suggesting that because with the new data, a lot of the "supported in all browsers" properties gets a https://github.com/Microsoft/vscode-css-languageservice/pull/105/files These will be quite noisy and unhelpful. |
Import mdn/browser-compat-data. Fix #102
For verifier: check aed9968 and verify the newly added properties are in the completion documentation. |
https://github.com/mdn/browser-compat-data
The text was updated successfully, but these errors were encountered: