mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibWeb: Include weight and slope in CSSFontFaceRule debug dumps
This commit is contained in:
parent
a28275657b
commit
4fc5e06837
Notes:
sideshowbarker
2024-07-17 18:06:52 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/4fc5e06837 Pull-request: https://github.com/SerenityOS/serenity/pull/19025
1 changed files with 10 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue