mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
36dc1c7872
When binding to `[style]` we correctly sanitized/unwrapped properties but we did not do it for the object itself.
```
@HostBinding("style")
style: SafeStyle = this.sanitizer.bypassSecurityTrustStyle(
"background: red; color: white; display: block;"
);
```
Above code would fail since the `[style]` would not unwrap the `SafeValue` and would treat it as object resulting in incorrect behavior.
Fix #35476 (FW-1875)
PR Close #35564