11ty / webc

Single File Web Components
MIT License
1.3k stars 36 forks source link

Scoped CSS: Next sibling selector not working with :host #198

Open rothsandro opened 6 months ago

rothsandro commented 6 months ago

The next sibling selector (adjacent sibling selector) does not work with :host.

<style webc:scoped>
    :host + :host {
        margin-block-start: 1rem;
    }
</style>

This should output xyz + xyz but produces xyz + :host.

Repro: https://github.com/rothsandro/repro.webc-adjacent-host-selector