You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[motion-1] offset-path should accept <url> instead of <url()> #508
I suspect the intended production is , which also accepts <src()>.
Yup.
<url()> and <src()> are never defined with their own production rules:
Because it isn't necessary for our purposes. ^_^ But I can do that, I suppose.
Therefore I considered as a replacement of , instead of increasing maintenance cost with a "custom" production rule.
This is very much incorrect. All token productions are usually wrong for use as values directly, as they only correspond to particular literal syntaxes and don't allow for other ways of producing the same value.
But it's especially wrong for <url>, since url(foo) is a <url-token> but url("foo") is a <function-token> (followed by a string and a close-paren).
Activity
tabatkins commentedon Mar 14, 2023
Yup.
Because it isn't necessary for our purposes. ^_^ But I can do that, I suppose.
This is very much incorrect. All token productions are usually wrong for use as values directly, as they only correspond to particular literal syntaxes and don't allow for other ways of producing the same value.
But it's especially wrong for
<url>, sinceurl(foo)is a<url-token>buturl("foo")is a<function-token>(followed by a string and a close-paren).[css-values-4] Formally provide <url()> and <src()> productions. Spec…
cdoublev commentedon Mar 14, 2023
Thanks! 🆒