Files
ladybird/Tests/LibWeb/Text/input/css/document-font-removed-on-style-sheet-removal.html
Callum Law df39394a7e LibWeb: Remove font face from document font source when disconnecting
When a CSS-connected FontFace is disconnected from it's associated
`CSSFontFaceRule` it should be removed from the Document's font source
2026-01-10 03:33:03 +00:00

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>