mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
LibWeb: Include weight and slope in CSSFontFaceRule debug dumps
This commit is contained in:
parent
a28275657b
commit
4fc5e06837
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…
Add table
Add a link
Reference in a new issue