mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb: Implement text-transform: capitalize
This commit is contained in:
parent
9f7cfb1394
commit
bbfe0d3a82
Notes:
sideshowbarker
2024-07-17 03:19:14 +09:00
Author: https://github.com/Cr4xy
Commit: bbfe0d3a82
Pull-request: https://github.com/SerenityOS/serenity/pull/21266
Reviewed-by: https://github.com/trflynn89 ✅
7 changed files with 27 additions and 9 deletions
|
@ -287,7 +287,9 @@ static ErrorOr<DeprecatedString> apply_text_transform(DeprecatedString const& st
|
|||
return string;
|
||||
case CSS::TextTransform::MathAuto:
|
||||
return apply_math_auto_text_transform(string);
|
||||
case CSS::TextTransform::Capitalize:
|
||||
case CSS::TextTransform::Capitalize: {
|
||||
return TRY(Unicode::to_unicode_titlecase_full(string, {}, Unicode::TrailingCodePointTransformation::PreserveExisting)).to_deprecated_string();
|
||||
}
|
||||
case CSS::TextTransform::FullSizeKana:
|
||||
case CSS::TextTransform::FullWidth:
|
||||
// FIXME: Implement these!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue