Skip to content

[css-properties-values-api] Substituting registered properties into non-registered properties #794

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

Closed
andruud opened this issue Aug 13, 2018 · 1 comment

Comments

@andruud
Copy link
Member

andruud commented Aug 13, 2018

Issue #321 briefly mentions that this maybe isn't allowed. Example:

--registered-length: 10px;
--unregistered: 5px var(--registered-length);

Is this allowed or not?

@tabatkins
Copy link
Member

#321 doesn't say they're not allowed; I say:

They should be able to sub into untyped properties; I imagine they'd get down-converted back into some equivalent token representation. This isn't well-specced.

So yes, definitely allowed, just not specified well. The substitution won't necessarily preserve the tokens you put in exactly, but there shouldn't be any noticeable difference unless you're doing something weird. (I'd ahve to think about it a bit to tell if there even would be a difference; I can't come up with one offhand.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants