mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Delete public constructor of FontFaceSet
The IDL definition in the spec does not have a public constructor, and our test that relies on it was failing to run in other browsers.
This commit is contained in:
parent
ee7b90b789
commit
814fa0682a
|
|
@ -2,7 +2,7 @@
|
|||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
const fontFaceSet = new FontFaceSet([]);
|
||||
const fontFaceSet = document.fonts;
|
||||
const fontFace = new FontFace("Hash Sans", 'url(../../../../Ref/assets/HashSans.woff)');
|
||||
|
||||
println("-- Empty FontFaceSet --");
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@ enum FontFaceSetLoadStatus { "loading", "loaded" };
|
|||
// https://drafts.csswg.org/css-font-loading/#fontfaceset
|
||||
[Exposed=(Window,Worker)]
|
||||
interface FontFaceSet : EventTarget {
|
||||
constructor(sequence<FontFace> initialFaces);
|
||||
|
||||
setlike<FontFace>;
|
||||
FontFaceSet add(FontFace font);
|
||||
boolean delete(FontFace font);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user