summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Bindings/CSSStyleDeclarationWrapperCustom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/Bindings/CSSStyleDeclarationWrapperCustom.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Bindings/CSSStyleDeclarationWrapperCustom.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Bindings/CSSStyleDeclarationWrapperCustom.cpp b/Userland/Libraries/LibWeb/Bindings/CSSStyleDeclarationWrapperCustom.cpp
index d99d124cb5..15b9d29759 100644
--- a/Userland/Libraries/LibWeb/Bindings/CSSStyleDeclarationWrapperCustom.cpp
+++ b/Userland/Libraries/LibWeb/Bindings/CSSStyleDeclarationWrapperCustom.cpp
@@ -11,6 +11,13 @@
namespace Web::Bindings {
+bool CSSStyleDeclarationWrapper::internal_has_property(JS::PropertyName const& name) const
+{
+ // FIXME: These should actually use camelCase versions of the property names!
+ auto property_id = CSS::property_id_from_string(name.to_string());
+ return property_id != CSS::PropertyID::Invalid;
+}
+
JS::Value CSSStyleDeclarationWrapper::internal_get(const JS::PropertyName& name, JS::Value receiver) const
{
// FIXME: These should actually use camelCase versions of the property names!