1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

LibWeb: Fetch CSS @font-face fonts in @import'ed style sheets

This makes importing Google Fonts via @import rule actually work. :^)
This commit is contained in:
Andreas Kling 2023-08-12 17:28:40 +02:00
parent 337754ae64
commit 3a4d386f05

View file

@ -107,6 +107,7 @@ void CSSImportRule::resource_did_load()
m_style_sheet = sheet;
m_document->style_computer().invalidate_rule_cache();
m_document->style_computer().load_fonts_from_sheet(*m_style_sheet);
m_document->invalidate_style();
}