LibWeb: Fix bogus condition when checking CSS font file extensions

Thanks Idan for pointing this out! :^)
This commit is contained in:
Andreas Kling 2022-09-15 01:20:02 +02:00
commit 1c0fc75cb6
Notes: sideshowbarker 2024-07-17 07:10:00 +09:00

View file

@ -1368,7 +1368,7 @@ void StyleComputer::load_fonts_from_sheet(CSSStyleSheet const& sheet)
auto path = source.url.path();
if (!path.ends_with(".woff"sv, AK::CaseSensitivity::CaseInsensitive)
|| path.ends_with(".ttf"sv, AK::CaseSensitivity::CaseInsensitive)) {
&& !path.ends_with(".ttf"sv, AK::CaseSensitivity::CaseInsensitive)) {
continue;
}