From 56cbc6545bee4ed2648bd6c698f3612b1c611269 Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Mon, 27 Jan 2025 17:38:58 -0800 Subject: [PATCH] Fix missing handling of "inset" CSS Keyword (#48990) Summary: tsia Changelog: [Internal] Reviewed By: joevilches Differential Revision: D68743950 --- .../react-native/ReactCommon/react/renderer/css/CSSKeyword.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/react-native/ReactCommon/react/renderer/css/CSSKeyword.h b/packages/react-native/ReactCommon/react/renderer/css/CSSKeyword.h index 07bca3f5e99acc..c9dc5c9693542c 100644 --- a/packages/react-native/ReactCommon/react/renderer/css/CSSKeyword.h +++ b/packages/react-native/ReactCommon/react/renderer/css/CSSKeyword.h @@ -307,6 +307,11 @@ constexpr std::optional parseCSSKeyword(std::string_view ident) { return KeywordT::InlineGrid; } break; + case fnv1a("inset"): + if constexpr (detail::hasInset) { + return KeywordT::Inset; + } + break; case fnv1a("ltr"): if constexpr (detail::hasLtr) { return KeywordT::Ltr;