Skip to content

Angular animations: the style() function doesn't change property unless it's in camel case #48246

@blablaalb

Description

@blablaalb

Which @angular/* package(s) are the source of the bug?

animations

Is this a regression?

No

Description

In some circumstances Angular Animations doesn't apply style if the css property is declared inside quotation marks such as 'background-color': 'red'. Here's the post on stackoverflow describing the issue.

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/angular-ivy-vhkked?file=src%2Fapp%2Fapp.component.ts

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

@angular/cli: 1.0.0
node: 19.1.0
os: win32 x64
@angular/animations: 4.4.7
@angular/common: 4.4.7
@angular/compiler: 4.4.7
@angular/compiler-cli: 4.4.7
@angular/core: 4.4.7
@angular/forms: 4.4.7
@angular/http: 4.4.7
@angular/platform-browser: 4.4.7
@angular/platform-browser-dynamic: 4.4.7
@angular/platform-server: 4.4.7
@angular/router: 4.4.7
@angular/cli: 1.0.0

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions