We have a grammer of CSS-Specification so that we can parse CSS-Files, the interesting part though e.g. which properties are available, what values they can have is at least for JavaFX not speced in a machine useable format but as plain HTML.
There are rules in this file but they are not useable for tools so we defined our own small language to store the information in a structured format so that we can make use of them in the CSS-Editor to:
- Show documentation
- Provide attribute proposals
- Provide value proposals
- Validate attribute values
Today we’ve reached an important first milestone by showing the documentation of attributes and elements.