mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
When a CSS-connected FontFace is disconnected from it's associated `CSSFontFaceRule` it should be removed from the Document's font source
20 lines
409 B
HTML
20 lines
409 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
@font-face {
|
|
font-family: Foo;
|
|
src: url("./Foo.woff");
|
|
}
|
|
</style>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
promiseTest(async () => {
|
|
await document.fonts.ready.then(() => {
|
|
println(document.fonts.size);
|
|
|
|
document.querySelector("style").remove();
|
|
|
|
println(document.fonts.size);
|
|
});
|
|
});
|
|
</script>
|