mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
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
This commit is contained in:
committed by
Tim Ledbetter
parent
d8f9caf853
commit
df39394a7e
Notes:
github-actions[bot]
2026-01-10 03:33:53 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/df39394a7ed Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7410 Reviewed-by: https://github.com/tcl3 ✅
@@ -0,0 +1,19 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user