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

# another way to make code DRY

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

Upsides:

- place the mesh with its geometry and material children in a new definition, re-use the definition. f.e. `<my-mesh-with-sphere-and-phong>`

Downsides:

- changes the HTML naming, requires CSS refactor if CSS selectors target other aspects of a `lume-mesh`.
- less shareable like CSS is with <link> and adoptedStylesheets? (basically lose upsides of CSS)

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

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

Received on Monday, 13 February 2023 01:00:55 UTC