webc icon indicating copy to clipboard operation
webc copied to clipboard

`<style webc:scoped @html>` doesn’t process scoped content

Open zachleat opened this issue 2 years ago • 2 comments

<style webc:scoped @html="`:host {}`">

Returns :host {} in the CSS bundle.

Workaround is to use child content for now:

<style webc:scoped>
:host {}
</style>

zachleat avatar Oct 21 '22 21:10 zachleat

<style webc:scoped @html="`:host {}`">

Returns :host {} in the CSS bundle.

Would we also be able to link stylesheets as scoped? <link rel="stylesheet" href="../shared-css/button.css" webc:scoped />

cssandstuff avatar Nov 07 '22 20:11 cssandstuff

@cssandstuff this was added in https://github.com/11ty/webc/issues/53

zachleat avatar Dec 02 '22 21:12 zachleat