Re: [css-houdini-drafts] [css-paint-api][css-typed-om] Current Color as an input to paint worklets (#921)

Agenda+ to discuss this.

There's no reason we *couldn't* give the painter used-value colors; it's an endpoint and that's fine and appropriate. (It's how all the other built-in painters work.) 

However, we don't have the infrastructure set up thru the specs to *generally* give access to a UsedStylePropertyMap object; that requires a *lot* of design work to rigorously define used values in all circumstances.

We might be able to offer color-resolving abilities thru a TypedOM API; it just needs an element for context, so it can check 'color' and 'color-scheme'.

Worst case, we can offer a special-purpose API to the PaintWorklet that resolves colors for you.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/921#issuecomment-546459060 using your GitHub account

Received on Friday, 25 October 2019 18:19:07 UTC