LibWeb: Pass locale to to_lowercase() from apply_text_transform

Previously we passed `{}` which resulted in incorrect text when using
some languages like `lt`.

Fixes:
http://wpt.fyi/results/css/css-text/text-transform/text-transform-upperlower-039.html
This commit is contained in:
Grubre
2024-10-29 12:05:52 +01:00
committed by Tim Flynn
parent 1b25fb5d40
commit 5a6a7b7e5e
3 changed files with 29 additions and 1 deletions

View File

@@ -285,7 +285,7 @@ static ErrorOr<String> apply_text_transform(String const& string, CSS::TextTrans
case CSS::TextTransform::Uppercase:
return string.to_uppercase(locale);
case CSS::TextTransform::Lowercase:
return string.to_lowercase();
return string.to_lowercase(locale);
case CSS::TextTransform::None:
return string;
case CSS::TextTransform::MathAuto: