Skip to content

[css-paint-api][css-typed-om] Reifying inputArguments #895

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

Open
andruud opened this issue May 31, 2019 · 1 comment
Open

[css-paint-api][css-typed-om] Reifying inputArguments #895

andruud opened this issue May 31, 2019 · 1 comment

Comments

@andruud
Copy link
Member

andruud commented May 31, 2019

CSS Typed OM does not define how to reify values without the context of a property. This means that we can't create a CSSStyleValue from a syntax descriptor: we'd need a property registered with that syntax. (For instance, if you pass a <color> as an input argument, what is the [[associatedProperty]] set to for the resulting direct CSSStyleValue? An easy thing to fix maybe, but it's not defined currently).

We could say that these values are reified in the context an anonymous registered custom property with that syntax ... or something.

cc @bfgeek

@tabatkins
Copy link
Member

Oooh, good catch.

Yes, I agree that reifying in the context of a registered custom property is the right way to go. You can't rely on the containing property; once custom functions exist, width: --foo(50%); does not necessarily tie the % resolution to how width: 50%; works.

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

No branches or pull requests

2 participants