Re: [csswg-drafts] [css-values] Automatic parsing of value definitions (#2921)

> ## Types written in prose and not reported by `w3c/webref` (ie. `reffy`)
> 
> I have not yet been able to run all existing tests for many CSS properties and CSS types, but for example `<dimension>` and `<rounding-strategy>`, which are not listed in the document whose [link](https://github.com/w3c/reffy/blob/main/src/specs/missing-css-rules.json) is given in a comment above (anchored on _list of "missing" rules_ - which means a list of missing definitions? -).
> 
> I report this issue with the idea in mind that it can be fixed either by preventing a property/type definition written in prose, which I think is unlikely to happen, or that it can be fixed in `w3c/webref`.

The `missing-css-rules.json` file is indeed outdated. It has not been maintained since we performed the initial analysis. We're slowly looking at improving support and checks for CSS properties, descriptors and value space definitions in Reffy and webref, but that remains very much in flux for now... and messy. Even the tracking is a bit messy, here are some updates that we have in mind:
- Running the analysis on an ongoing basis so that we can maintain `css-missing-rules.json` or something similar, see https://github.com/w3c/reffy/issues/498
- Making sure that all value definitions can be parsed with CSSTree, see https://github.com/w3c/reffy/issues/494 (almost the case today but there remain a few constructs that CSSTree cannot parse)
- Making sure that all referenced types are defined somehow in webref (which would catch `<dimension>` and `<rounding-strategy>`), see https://github.com/w3c/webref/issues/126
- Making sure that CSS properties are defined only once in webref (and ideally in CSS specs as well), see https://github.com/w3c/webref/issues/127

-- 
GitHub Notification of comment by tidoust
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2921#issuecomment-901797627 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 19 August 2021 10:26:14 UTC