LibWeb/CSS: Add functions that report font format/technology support

Both `@supports` and `@font-face` need this. There may be some automatic
way of querying whether our renderer supports these, but I couldn't
figure it out, so here's a basic hard-coded list. I think the font-tech
list has false negatives, as I don't know enough about fonts to
determine what we support accurately.
This commit is contained in:
Sam Atkins 2025-03-14 11:32:05 +00:00
commit adfe8a9dcb
Notes: github-actions[bot] 2025-03-17 10:01:24 +00:00
2 changed files with 56 additions and 0 deletions

View file

@ -113,4 +113,7 @@ private:
bool m_is_css_connected { false };
};
bool font_format_is_supported(FlyString const& name);
bool font_tech_is_supported(FlyString const& name);
}