Skip to content
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

Allow to change the target of observer #28

Merged
merged 3 commits into from
Aug 16, 2020
Merged

Allow to change the target of observer #28

merged 3 commits into from
Aug 16, 2020

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Jul 26, 2020

For now, polyfill did not apply to elements in the shadow root of Web Components.

By passing the shadow root as an argument of observe(), polyfill can apply to per scoped shadow elements.

Safari polyfill does not apply to shadow root automatically because some components that created through element.attachShadow({ mode: 'closed' }) may not be accessible to the shadow elements with uniformed way. Developer must execute polyfill observe() in each components explicitly whenever using Marpit inline SVG within Web Component.

yhatt added 3 commits July 20, 2020 21:16
Polyfill did not apply to elements in the shadow root of Web Components.
By passing the shadow root as an argument of `observe()`, polyfill can
apply to per scoped elements.
@yhatt yhatt merged commit 58d253e into master Aug 16, 2020
@yhatt yhatt deleted the target-option branch August 16, 2020 15:55
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.

1 participant