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

feat: [#1441] Support font-face #1474

Merged
merged 4 commits into from
Aug 29, 2024

Conversation

m-shaka
Copy link
Contributor

@m-shaka m-shaka commented Jul 1, 2024

I'm literally new to happy-dom and 100% not sure if this does work, but it seems like happy-dom can handle @font-face.

If I made mistakes, please fix them.

close #1441

@m-shaka m-shaka requested a review from capricorn86 as a code owner July 1, 2024 10:40
@redzimskidev
Copy link

Hello, any updates or workarounds? We have a library using font-face in our project that breaks our tests, haven't found a way to work around this issue.

Copy link
Owner

@capricorn86 capricorn86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution @m-shaka! 🌟

Sorry that you had to wait for such a long time. It has been a busy summer.

@capricorn86
Copy link
Owner

I have added a unit test and support for CSSFontFaceRule.cssText. Also noticed difference for the "font-family" value compared to the browser that I fixed.

@capricorn86 capricorn86 merged commit 99639e5 into capricorn86:master Aug 29, 2024
3 checks passed
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.

Invalid CSS rule error when using @font-face
3 participants