title: Angular 2 tests - get DOM element styles
body: <p>I want to test the functionality of my hide-show button in my Angular 2 app(Tests are written in Jasmine), so I need to check the value of the <code>display</code> property of the relevant element. How can I get this property using Angular's <code>debugElement</code>?
  Test code:</p>
  
  <pre><code>let input = fixture.debugElement.query(By.css('input'));
  expect(input.styles['visibility']).toBe('false');
  </code></pre>
  
  <p>I get the error:
  Expected undefined to be 'false'.</p>