sebastianz / cssdatascraper Goto Github PK
View Code? Open in Web Editor NEWScrapes the data from the different CSS property DB pages on MDN
License: MIT License
Scrapes the data from the different CSS property DB pages on MDN
License: MIT License
The {{cssanimatableshorthand}} macro is not handled.
It should be interpreted as array of animatable longhands.
See mask
as an example.
The {{cssinitialdef}} macro surrounds the value by <code>
tags. This formatting should be saved within the scraper output.
Sebastian
Shorthands like background
use the csspercentageshorthand
macro, which is currently not recognized.
The longhands defined as second parameter of that macro should be read and added as array to the percentages
property.
If there's a bracket within a syntax defintion, the {{csssyntaxdef}} macro is not parsed correctly.
See the syntax for font-variant
as example.
When the {{cssanimatabledef}} macro is called with three parameters, the third one is incorrectly added to the 'animatable' property value.
See background-size
as example.
The {{csspercentagedef}} macro is not handled.
Its first parameter should be set as percentage information.
See transform-origin
as an example.
When the {{cssanimatabledef}} macro is called with only one parameter, it is incorrectly parsed as no
.
Animated values not wrapped in a macro like the one for all
are not scraped.
The JSON structure created by the scraper should follow the rules outlined in bug 1198949 comment 11. That is:
Sebastian
The information from https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_special_properties should be included in the data structure.
The HTML formatting used in the descriptions for some properties should be kept instead of only reading the plain text.
An example for this is the initial value of text-align
.
See also bug 1198959.
The non-terminal-cont
value as third parameter of the {{csssyntaxdef}} macro is not recognized.
It should be parsed the same as the non-terminal
value.
The {{csscomputedcolordef}} macro is currently not recognized.
It should be interpreted to reference to the value specified for the color
property.
See border-bottom-color
as an example.
The {{cssappliestoshorthand}} macro is not handled.
It should be interpreted as array of animatable longhands.
See border-image
as an example.
Percentages defined via the {{csspercentagestartdef()}}
and {{csspercentageenddef()}}macros should be saved in a property called
percentages. Instead they are saved in a property
percentage`.
See max-height
for an example.
Sebastian
CSS selectors should be added to the output including a group and their syntax.
Every group should be prefixed by 'CSS '.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.