-
Notifications
You must be signed in to change notification settings - Fork 575
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
fix(embedded-webfonts): retrieving font family via getPropertyValue #507
base: master
Are you sure you want to change the base?
Conversation
💖 Thanks for opening this pull request! 💖 Please follow the contributing guidelines. And we use semantic commit messages to streamline the release process. Examples of commit messages with semantic prefixes:
Things that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #507 +/- ##
=======================================
Coverage 66.50% 66.50%
=======================================
Files 10 10
Lines 612 612
Branches 150 150
=======================================
Hits 407 407
Misses 144 144
Partials 61 61 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
So apparently in Firefox we must use I apologize for causing the issue. Btw, I think This will fix: #508 |
Description
Motivation and Context
Current solution attempts to read fontFamily property from style, which is a https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration instance, and results in an
undefined
font that later crashes innormalizeFontFamily
. This fix leverages CSSStyleDeclaration.getPropertyValue() and provides empty string in case of a node not having defined font-family.Types of changes
Self Check before Merge