Re: [w3c/webcomponents] Provide a lightweight mechanism to add styles to a custom element (#468)

@alextech, I would assume any proposed style mechanism would need to be either a single item (string identifier or `CSSStyleObject`) or any array (an indexed iterable) so that the cascade will be predictable based on some internal algorithm. 

The original proposal only called for a single value, but I do believe that usin an array would be more flexible, but @rniwa or another browser expert might have a reason that might not work. I would assume, though, that any `@apply` rules would be set in the style sheet object passed to the style parameter on the element definition config object. 

I do like the idea of defining these styles in a registry that can be referenced/recalled/reused as needed. I’d really like to hear @sorvell’s (original issue filer) thought on that addition to the original request. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/468#issuecomment-367318311

Received on Wednesday, 21 February 2018 13:01:48 UTC