mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-23 17:33:12 +00:00
LibWeb/CSS: Only attempt to load valid @font-face
fonts
These must have a `font-family` and `src` set to be included in font-matching. Otherwise they should be ignored, but still exist in the CSSOM.
This commit is contained in:
parent
f87b454fa9
commit
9cce791424
Notes:
github-actions[bot]
2025-04-04 09:41:32 +00:00
Author: https://github.com/AtkinsSJ
Commit: 9cce791424
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4206
4 changed files with 17 additions and 2 deletions
|
@ -702,6 +702,9 @@ void dump_rule(StringBuilder& builder, CSS::CSSRule const& rule, int indent_leve
|
|||
void dump_font_face_rule(StringBuilder& builder, CSS::CSSFontFaceRule const& rule, int indent_levels)
|
||||
{
|
||||
auto const font_face = rule.font_face();
|
||||
indent(builder, indent_levels + 1);
|
||||
builder.appendff("VALID: {}\n", rule.is_valid());
|
||||
|
||||
indent(builder, indent_levels + 1);
|
||||
builder.appendff("font-family: {}\n", font_face.font_family());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue