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

Override font-family-modern font weight (link elements method) #232

Conversation

marcustyphoon
Copy link
Collaborator

@marcustyphoon marcustyphoon commented Jan 31, 2025

Phew boy. That was a lot more CORS research and general shenanigans than I anticipated.

  • investigate alternative new CSSStyleSheet().replace(await fetch(url).then(response => response.text()).then( method

Description

tbd

Testing steps

tbd

@marcustyphoon marcustyphoon force-pushed the font-weight-override-live-links branch from b4c27b2 to 181e3e9 Compare January 31, 2025 13:19
@marcustyphoon
Copy link
Collaborator Author

marcustyphoon commented Jan 31, 2025

Just discovered that at least one target rule (.stats-FzBTa .link-GpO9n) is inside a media query that does actually change the font face and font weight. No ill effect (the non-mobile-width rule was, naturally, Favorit 400 anyway), but probably better safe than sorry.

  • consider finding a way to process these or just exclude them

edit: excluding them; see #231 (comment)

@marcustyphoon marcustyphoon changed the title Override font-family-modern font weight (live style construction method) Override font-family-modern font weight (link elements method) Jan 31, 2025
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