custom-elements-everywhere icon indicating copy to clipboard operation
custom-elements-everywhere copied to clipboard

Test for <slot> (named and unnamed)

Open alindsay55661 opened this issue 6 years ago • 1 comments

I'm the maintainer of a large private custom element library at work and we we're very excited to see Svelte move to 100% passing tests recently. Several pilot projects had been done with Svelte and finally we adopted it for use in official applications based in part on the fantastic information in this repository.

A few weeks after adoption we discovered Svelte isn't fully compatible with custom elements because of a conflicting "named slot" implementation. We have worked around the issue temporarily, but since slot (or "content projection" in framework nomenclature) is a major function of both custom elements and frameworks I thought a test for would be good to add here.

A related Svelte issue has already been reported by @therealnicksaunders here:

https://github.com/sveltejs/svelte/issues/1689

alindsay55661 avatar Sep 11 '18 19:09 alindsay55661

oh interesting! Sorry for not catching this in the original set of tests, but this is also one of the reasons I wanted to create the site—to help identify really deep issues that may not be immediately obvious.

We can totally work on a test to catch this. It'll need to be applied to all libraries and I bet we'll discover some interesting things does that as well :)

robdodson avatar Sep 11 '18 23:09 robdodson