Files
ladybird/Tests/LibWeb/Text/input/css/CSSFontFaceRule-src-change-only-creates-one-new-FontFace.html
Callum Law d8f9caf853 LibWeb: Only run handle_src_descriptor_change once
Previously we would run it once within `set_src()` and then again within
`set_property()` which would lead to us creating two new `FontFace`s
instead of just one
2026-01-10 03:33:03 +00:00

20 lines
468 B
HTML

<!DOCTYPE html>
<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(() => {
document.styleSheets[0].cssRules[0].style.src = 'url("./Bar.woff")';
println(document.fonts.size);
});
});
</script>
</html>