LibWeb: Add FontFaceSetLoadEvent

This commit is contained in:
Tim Ledbetter
2026-01-05 17:18:29 +00:00
committed by Jelle Raaijmakers
parent 581d6ce6e7
commit 2ff77589df
Notes: github-actions[bot] 2026-01-06 11:25:43 +00:00
9 changed files with 133 additions and 11 deletions

View File

@@ -0,0 +1,15 @@
#import <CSS/FontFace.idl>
#import <DOM/Event.idl>
// https://drafts.csswg.org/css-font-loading/#fontfacesetloadevent
dictionary FontFaceSetLoadEventInit : EventInit {
sequence<FontFace> fontfaces = [];
};
// https://drafts.csswg.org/css-font-loading/#fontfacesetloadevent
[Exposed=(Window,Worker)]
interface FontFaceSetLoadEvent : Event {
constructor(CSSOMString type, optional FontFaceSetLoadEventInit eventInitDict = {});
[SameObject] readonly attribute FrozenArray<FontFace> fontfaces;
};