diff options
author | Andreas Kling <kling@serenityos.org> | 2023-05-24 19:59:31 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-24 20:58:46 +0200 |
commit | 4fc5e068374a3e10fdece48a15d20b68b57abc38 (patch) | |
tree | b43e9b4694ff1bef4b385b0e8569c0c0103a28ba /Userland/Libraries/LibWeb | |
parent | a28275657bdbb8752e68bced0ea739311f41f3e2 (diff) | |
download | serenity-4fc5e068374a3e10fdece48a15d20b68b57abc38.zip |
LibWeb: Include weight and slope in CSSFontFaceRule debug dumps
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r-- | Userland/Libraries/LibWeb/Dump.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Dump.cpp b/Userland/Libraries/LibWeb/Dump.cpp index 66141fe2ba..98316e1817 100644 --- a/Userland/Libraries/LibWeb/Dump.cpp +++ b/Userland/Libraries/LibWeb/Dump.cpp @@ -662,6 +662,16 @@ void dump_font_face_rule(StringBuilder& builder, CSS::CSSFontFaceRule const& rul indent(builder, indent_levels + 1); builder.appendff("font-family: {}\n", font_face.font_family()); + if (font_face.weight().has_value()) { + indent(builder, indent_levels + 1); + builder.appendff("weight: {}\n", font_face.weight().value()); + } + + if (font_face.slope().has_value()) { + indent(builder, indent_levels + 1); + builder.appendff("slope: {}\n", font_face.slope().value()); + } + indent(builder, indent_levels + 1); builder.append("sources:\n"sv); for (auto const& source : font_face.sources()) { |