mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00: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
Notes:
github-actions[bot]
2024-09-30 06:08:57 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/814fa0682a8 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1569
2 changed files with 1 additions and 3 deletions
|
@ -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 a new issue