-
Notifications
You must be signed in to change notification settings - Fork 23
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
CSS types only defined and extracted as values #1146
Comments
Global and local definitions are conceptually correct but the main problem is probably the lack of consistency across specs, making it harder to process the data. That heterogeneity is likely a simple result of there being different spec authors (who approach definitions with slightly different mental models), and of this likely being seen as low priority in any case. If it becomes clear that a global (or local) approach is the way to go, we could envision curating the data in Reffy. To start with, I think it would be useful to list values (and specs) that look like types or functions and that don't have corresponding global type or function definitions. Do you have that at hand by any chance? I'll explore the data otherwise. A side question is whether definitions that have a |
A quick look at data yields the following list of types and functions that don't have a global definition (number of occurrences is the number of occurrences as value in the extract, not in the spec):
|
I was wrong, sorry: it is fine that a type is declared only under a namespace.
The problem is that Restricting the search to
Yes. I also agree that it is likely being seen as low priority in any case. I was thinking that adding some templates in the Bikeshed documentation, that spec authors could refer to, may help a bit. Ideally, the existing specs should be correct and such templates would not be needed. |
I don't know what the correct way of defining CSS things should be, but if the argument is that there should always be an underlying
On top of these, there are at least a couple of places where things look a bit clunky:
Always a good idea to add more documentation for spec authors. Pull requests that improve the documentation would most likely be well received :) For what it's worth, the definitions data model currently embedded in Bikeshed's documentation is also followed by ReSpec (even though ReSpec's documentation currently says that only |
I do not think so. Here is my understanding, removing any I think and ignoring that you may already agree with some of these statements.
When the syntax of These cases are examples where a template may be usefull. Thanks for giving me some context on this. |
Did you mean
That would work. That said, as with selectors, I'm personally interested in The fact that such functions sometimes appear using a functional notation ( One example where this affected MDN pages for the Also, having functions directly at hand makes it easier to build or validate pages such as the CSS Functional index. As usual, the CSS Working Group would be the right place to go to suggest changes. The approaches mentioned above or the hybrid model currently followed by CSS specs all more or less work as far as I can tell. Re-constructing the list of functions automatically from values is not too hard in particular. |
Yes, I meant |
Fwiw, Maybe we can discuss the examples it might include in another issue, before making a PR? Or you can do this without me. I am just offering my help if you do not want or do not have time to do it. |
It's a good idea to crystallize guidelines in the I also note that I don't exactly know what to suggest in corner cases. For instance, I didn't address the definition of |
<timeline-name>
is only extracted as a value
Since this change (I think),
<timeline-name>
is not extracted as atype
but only as avalue
namespaced under<single-animation-timeline>
. The HTML markup looks like this:I think a type should always be defined as a "global" value, then a rule/property/descriptor/type can restrict or contextualize its definition.
However I do not think it should be the responsibility of Reffy to provide this guarantee, and the above markup looks wrong to me. I would like to get your opinion before asking for a fix on
w3c/csswg-drafts
.EDIT:
<timeline-name>
has been replaced by<custom-ident>
, which is a well defined terminal / CSS basic type, but the root problem remains, ie. a type should be defined at least once as atype
.The text was updated successfully, but these errors were encountered: