export default { html: `

`, test({ assert, target, window, component }) { const p = target.querySelector('p'); const styles = window.getComputedStyle(p); assert.equal(styles.color, 'rgb(255, 0, 0)'); assert.equal(styles.fontSize, '32px'); assert.equal(styles.backgroundColor, 'rgb(0, 128, 0)'); assert.equal(styles.borderColor, 'rgb(0, 128, 0)'); component.foo = 'font-size: 50px; color: green;'; // Update style attribute { const p = target.querySelector('p'); const styles = window.getComputedStyle(p); assert.equal(styles.color, 'rgb(255, 0, 0)'); assert.equal(styles.fontSize, '32px'); assert.equal(styles.backgroundColor, 'rgb(0, 128, 0)'); assert.equal(styles.borderColor, 'rgb(0, 128, 0)'); } } };