Skip to content

script: Implement FontFaceSet.status - #49905

Merged
TimvdLippe merged 1 commit into
servo:mainfrom
Daniel-1600:fontfaceset-status
Nov 14, 2026
Merged

TimvdLippe merged 1 commit into
servo:mainfrom
Daniel-1600:fontfaceset-status

Conversation

@Daniel-1600

Copy link
Copy Markdown
Contributor

Added the status attribute to FontFaceSet. It is set to "loading" when the set switches to loading, and to "loaded" right before the ready promise is fulfilled, following the "switch the FontFaceSet to loaded" algorithm.

The specification does not define an initial value. Since the ready promise starts out pending, start out as "loading" so that status is "loaded" exactly when the ready promise is fulfilled.

Testing: This change makes the following WPT tests pass:

  • css/css-font-loading/fontface-fonts-loading.html
  • css/css-font-loading/fontfaceset-ready-unused-face-failed-local-source.html
  • css/css-font-loading/idlharness.https.html (the two status subtests)
    Part of Add support for the CSS Font Loading API #29376.

@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 14, 2026

@jdm jdm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Nov 14, 2026
@jdm
jdm added this pull request to the merge queue Nov 14, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 14, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 14, 2026
@servo-highfive servo-highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Nov 14, 2026
@TimvdLippe
TimvdLippe added this pull request to the merge queue Nov 14, 2026
@servo-highfive servo-highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Nov 14, 2026
Merged via the queue into servo:main with commit d7d6eaa Nov 14, 2026
44 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 14, 2026
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.

4 participants