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

Mutating CSSStyleDeclaration (via .setProperty() for example) does not update injected style #114

Open
fsmorygo opened this issue Jul 17, 2022 · 0 comments

Comments

@fsmorygo
Copy link

Describe the bug
Mutating CSSStyleDeclaration (via .setProperty() for example) does not update injected style. When I change its value, only ConstructedStyleSheet is changed, but I don't see any changes in DOM

To Reproduce

  1. Create and add a Stylesheet with some rules to a Shadow DOM's adoptedStyleSheets
  2. Change some property with myRule.style.setPropety('width', '10px)3.
  3. Check the DOM and verify no changes have happened.

Expected behavior**
Injected style will update as it would on Chrome with native constructed style sheets support

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Safari
  • Version: 15.5
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

No branches or pull requests

1 participant