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

CSS: Smart <style> tag updates #3

Open
lefetmeofefet opened this issue Mar 10, 2020 · 0 comments
Open

CSS: Smart <style> tag updates #3

lefetmeofefet opened this issue Mar 10, 2020 · 0 comments

Comments

@lefetmeofefet
Copy link
Owner

Currently when style tag content is updated, the whole css inside is recalculated, that's bad for performance.
Instead, it's possible to change the style object directory: styleTag.sheet.cssRules[0].style.color="red".
Use cases to cover:

  • property value (green)
  • property name (color)
  • whole css line (color: green;)
  • whole css selector content (color: green; font-size: 24px;)
  • css selector (.things>#ikaramba)
  • whole css rule (selector + content)
  • multiple css rules
@lefetmeofefet lefetmeofefet changed the title Smart <style> tag (css) updates CSS: Smart <style> tag updates Mar 10, 2020
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