mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09: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:
parent
337754ae64
commit
3a4d386f05
Notes:
sideshowbarker
2024-07-16 21:42:29 +09:00
Author: https://github.com/awesomekling
Commit: 3a4d386f05
Pull-request: https://github.com/SerenityOS/serenity/pull/20525
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue