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

implement a wrapper of CSS Font Loading API #1833

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mesmerizingwaft
Copy link

Summary

This PR partially adds a wrapper of CSS Font Loading API

This PR includes:

  • css_font_load.ml(i) : actual implementation of the wrapper
  • adding a property fonts to Dom_html.document to return FontFaceSet
  • examples/css_font_load

Note

  1. Hi. This is my first PR on this repo. Let me know if anything is missing in this PR.

  2. I didn't include a test for this feature because it seems the font loading API is not working on test codes in a straightforward manner (which may require stub or something of FontFaceSet)
    Do you guys have any idea to handle this?

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