mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb/CSS: Parse font-named-instance descriptor
This commit is contained in:
parent
3eb6d510fd
commit
7c50a31402
Notes:
github-actions[bot]
2024-09-28 12:43:44 +00:00
Author: https://github.com/AtkinsSJ
Commit: 7c50a31402
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1554
5 changed files with 45 additions and 4 deletions
|
@ -694,6 +694,11 @@ void dump_font_face_rule(StringBuilder& builder, CSS::CSSFontFaceRule const& rul
|
|||
|
||||
indent(builder, indent_levels + 1);
|
||||
builder.appendff("display: {}\n", CSS::to_string(font_face.font_display()));
|
||||
|
||||
if (font_face.font_named_instance().has_value()) {
|
||||
indent(builder, indent_levels + 1);
|
||||
builder.appendff("named-instance: {}\n", font_face.font_named_instance().value());
|
||||
}
|
||||
}
|
||||
|
||||
void dump_import_rule(StringBuilder& builder, CSS::CSSImportRule const& rule, int indent_levels)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue