-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: solve the methods application issue
To apply method calls of the main CSSStyleSheet to all adopters we need them to have style elements with CSSStyleSheet object attached. It means that we cannot work with disconnected elements, and the idea to work from inside the setter of the adoptedStyleSheets setter does not fit. That's why we need to track the already connected elements via the MutationObserver and NodeIterator (to catch nested nodes).
- Loading branch information
Showing
1 changed file
with
76 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters