message: fix(animations): restore auto-style support for removed DOM nodes
  PR Close
diff: @@ -1087,14 +1087,16 @@ export function main() {
  .toBeTruthy();
  });
  - it('should animate removals of nodes to the `void` state for each animation trigger', () => {
  + it('should animate removals of nodes to the `void` state for each animation trigger, but treat all auto styles as pre styles',
  + () => {
  @Component({
  selector: 'ani-cmp',
  template: `
  <div *ngIf="exp" class="ng-if" [@trig1]="exp2" @trig2></div>
  `,
  animations: [
  - trigger('trig1', [transition('state => void', [animate(1000, style({opacity: 0}))])]),
  + trigger(
  + 'trig1', [transition('state => void', [animate(1000, style({opacity: 0}))])]),
  trigger('trig2', [transition(':leave', [animate(1000, style({width: '0px'}))])])
  ]
  })
  @@ -1128,12 +1130,12 @@ export function main() {
  const player1 = getLog().pop() !;
  expect(player2.keyframes).toEqual([
  - {width: AUTO_STYLE, offset: 0},
  + {width: PRE_STYLE, offset: 0},
  {width: '0px', offset: 1},
  ]);
  expect(player1.keyframes).toEqual([
  - {opacity: AUTO_STYLE, offset: 0}, {opacity: '0', offset: 1}
  + {opacity: PRE_STYLE, offset: 0}, {opacity: '0', offset: 1}
  ]);
  player2.finish();
  