-
Notifications
You must be signed in to change notification settings - Fork 24
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
Avoid deriving production rule from function definitions #1355
Comments
Sorry for the late reply. Are there other cases where this rule creates problematic Most of the time, these scoped values seem directly extracted from the production rule of the parent property that gives birth to them. It seems reasonable to assume that they are production rules when they claim that they define a function. The value I agree with the desired result: the |
There are also math functions in CSS Values 4 but Reffy gives precedence to the corresponding production rule over their There are some
Indeed, a few definitions would be missing... In my opinion, there should be production rules for them. Spec authors may also use a different syntax that is more human-frienly but they should make sure that they have defined a production rule that would take precedence. However, there is no production to define for
But I would still have no way to differentiate a |
I would like to propose that CSS function definitions are no longer assigned a
value
derived from an inline definition (without a=
sign, here). For example, I would like to avoid thevalue
offn()
being assignedfn(foo)
whenfn()
is defined with<dfn data-dfn-type=function>fn(foo)</dfn >
.I think it should instead be assigned to the
prose
offn()
. But more importantly, I think assuming it represents the right side of a production rule is problematic.minmax()
is defined inline withminmax(min, max)
butmin
andmax
are not valid arguments when interpreted as a CSS value definition, regardless of the context that includes it in its value definition.Until this recent change,
minmax(min, max)
was defined as avalue
rather than afunction
. Since I do not use thevalue
s exported bywebref
, this was not a problem but now I have to specifically ignore it¹ because<minmax()>
does not expand tominmax(min, max)
.A
function
can be referenced by Bikeshed autolinks<<fn()>>
or<<context/fn()>>
, generating<fn()>
as their text. In w3c/csswg-drafts#7682 (comment), Tab Atkins says:I find this confusing and I am not sure why/if I can use
<<grid-template-rows/minmax()>>
. Perhaps a distinction should be made between a context-sensitive value definition (parsing) and a context-sensitive definition (interpretation by the UA).But in any case, my proposal seems desirable to me.
¹ more concretely, my problem is that
minmax()
is unnecessarily included in the collection of productions extracted fromwebref
data, whereas there is no property value definition, or higher-order production rule, that includes<minmax()>
and requires to resolve its value definition by looking into the productions.The text was updated successfully, but these errors were encountered: