LibWeb: Use camelCase for JS keyframe objects

This commit is contained in:
Matthew Olsson 2024-06-02 10:10:13 -07:00 committed by Andreas Kling
parent 74840de7fc
commit 37ee45db3d
Notes: sideshowbarker 2024-07-17 05:02:35 +09:00

View File

@ -835,7 +835,7 @@ WebIDL::ExceptionOr<JS::MarkedVector<JS::Object*>> KeyframeEffect::get_keyframes
for (auto const& [id, value] : keyframe.parsed_properties()) {
auto value_string = JS::PrimitiveString::create(vm, value->to_string());
TRY(object->set(JS::PropertyKey(DeprecatedFlyString(CSS::string_from_property_id(id))), value_string, ShouldThrowExceptions::Yes));
TRY(object->set(JS::PropertyKey(DeprecatedFlyString(CSS::camel_case_string_from_property_id(id))), value_string, ShouldThrowExceptions::Yes));
}
m_keyframe_objects.append(object);