fix(embedded-webfonts): retrieving font family via getPropertyValue#507
fix(embedded-webfonts): retrieving font family via getPropertyValue#507petrmiko wants to merge 2 commits intobubkoo:masterfrom
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 |
|
Hello @bubkoo, sorry to bother, could you please look into reviewing this MR? It is affecting all Firefox users 🙏 |
|
Hello @bubkoo! In the spirit of upcoming Christmas... Could you pls look into this MR? 🙏 :) |
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
undefinedfont 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