From 1c0fc75cb65dc4f82da8b3468bd1f660906a20b4 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 15 Sep 2022 01:20:02 +0200 Subject: [PATCH] LibWeb: Fix bogus condition when checking CSS font file extensions Thanks Idan for pointing this out! :^) --- Userland/Libraries/LibWeb/CSS/StyleComputer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp index 0d50a3b51e..780dfc18da 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp @@ -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; }