Skip to content

ensure support for browsers without manual slot assignment #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

keithamus
Copy link
Contributor

I was testing this out in some older browsers and found that some (Safari 15) don't support manual slot assignment. We should endeavour to ensure older browsers work as best they can, and it's not too difficult to get manual slot assignment working in these older browsers, by simply mutating the slot= attribute.

So this detects if manual slot assignment is supported, and if not falls back to mutating slot=.

@keithamus keithamus requested a review from a team as a code owner February 22, 2024 13:06
Copy link
Member

@owenniblock owenniblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♥️

@keithamus keithamus merged commit 47345a3 into main Feb 22, 2024
@keithamus keithamus deleted the ensure-support-for-browsers-without-manual-slot-assignment branch February 22, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants