Re: [WICG/webcomponents] custom pseudo elements like ::before ::after, but using custom elements (Issue #983)

@trusktr ,
> Maybe [declarative custom elements](https://github.com/WICG/webcomponents/blob/gh-pages/proposals/Declarative-Custom-Elements-Strawman.md) would solve this.

You must be joking. There is nothing `declarative` about proposal you mentioned. 
Alternative would be [pure declarative syntax](https://github.com/EPA-WG/custom-element). 

Exposing the DCE to CSS as `::custom-element-pseudo('my-element')` is definitely a great idea. 
The polyfill should be implementable but aware of custom elements registry scopes. I.e. have more sense to be a part of scoping. 

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

Message ID: <WICG/webcomponents/issues/983/1427235690@github.com>

Received on Monday, 13 February 2023 02:25:08 UTC