Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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. |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.


https://github.com/mdn/browser-compat-data