11ty / 11ty/webc

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

Open
#58 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
1.4k
Forks
46
Avg merge
10m
Merged PRs (30d)
2

Description

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

Returns :host {} in the CSS bundle.

Workaround is to use child content for now:

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the shown <style webc:scoped @html=":host {}"> example and compare its CSS bundle output with the child-content workaround. Trace the scoped-style processing entry point and make the @html content behave like inline scoped content; done means the CSS bundle contains the expected scoped result rather than the raw template expression.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.