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

refactor: use CSSStyleSheet object to adopt style sheet #3

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

YuskaWu
Copy link
Owner

@YuskaWu YuskaWu commented Oct 12, 2022

Use CSSStyleSheet to change the custom property of size dynamically inside shadow DOM, so that we can prevent modifying inline style of github-corner element when the size attribute has changed.

(This PR can not merge since Safari does not support adoptedStyleSheets & CSSStyleSheet.replaceSync() API yet.)

@YuskaWu YuskaWu self-assigned this Oct 12, 2022
@YuskaWu YuskaWu force-pushed the refactor/dynamic-stylesheet branch from 4faaeac to 49b72ee Compare October 12, 2022 09:32
@YuskaWu YuskaWu force-pushed the main branch 2 times, most recently from f6b8d99 to b8d1cc0 Compare November 22, 2022 18: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