1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:28:11 +00:00

LibWeb: Parse @font-face unicode-range descriptor

This commit is contained in:
Sam Atkins 2022-03-31 16:39:52 +01:00 committed by Andreas Kling
parent ef7d80ced2
commit dbbd6d3508
4 changed files with 43 additions and 4 deletions

View file

@ -580,6 +580,13 @@ void dump_font_face_rule(StringBuilder& builder, CSS::CSSFontFaceRule const& rul
indent(builder, indent_levels + 2);
builder.appendff("{}\n", source.url);
}
indent(builder, indent_levels + 1);
builder.append("unicode-ranges:\n");
for (auto const& unicode_range : font_face.unicode_ranges()) {
indent(builder, indent_levels + 2);
builder.appendff("{}\n", unicode_range.to_string());
}
}
void dump_import_rule(StringBuilder& builder, CSS::CSSImportRule const& rule, int indent_levels)