mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
These no longer serve any purpose now that we run the IDLGenerator on all of these files at once.
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
enum FontFaceSetLoadStatus { "loading", "loaded" };
|
|
|
|
// https://drafts.csswg.org/css-font-loading/#fontfaceset
|
|
[Exposed=(Window,Worker)]
|
|
interface FontFaceSet : EventTarget {
|
|
setlike<FontFace>;
|
|
FontFaceSet add(FontFace font);
|
|
boolean delete(FontFace font);
|
|
undefined clear();
|
|
|
|
// events for when loading state changes
|
|
attribute EventHandler onloading;
|
|
attribute EventHandler onloadingdone;
|
|
attribute EventHandler onloadingerror;
|
|
|
|
// check and start loads if appropriate
|
|
// and fulfill promise when all loads complete
|
|
// FIXME: Promise<sequence<FontFace>> load(CSSOMString font, optional CSSOMString text = " ");
|
|
Promise<sequence<FontFace>> load(CSSOMString font, optional CSSOMString text = "");
|
|
|
|
// return whether all fonts in the fontlist are loaded
|
|
// (does not initiate load if not available)
|
|
// FIXME: boolean check(CSSOMString font, optional CSSOMString text = " ");
|
|
boolean check(CSSOMString font, optional CSSOMString text = "");
|
|
|
|
// async notification that font loading and layout operations are done
|
|
readonly attribute Promise<FontFaceSet> ready;
|
|
|
|
// loading state, "loading" while one or more fonts loading, "loaded" otherwise
|
|
readonly attribute FontFaceSetLoadStatus status;
|
|
};
|
|
|
|
interface mixin FontFaceSource {
|
|
readonly attribute FontFaceSet fonts;
|
|
};
|