import { beHidden, beVisible, haveText, beChecked, haveAttribute, haveClasses, haveValue, notBeChecked, notHaveAttribute, notHaveClasses, test, html } from '../../utils' test('style attribute object binding', html`
I should be red
`, ({ get }) => { get('span').should(haveAttribute('style', 'color: red;')) } ) test('style attribute object binding using camelCase syntax', html`
I should be red
`, ({ get }) => { get('span').should(haveAttribute('style', 'background-color: red;')) } ) test('style attribute object binding using kebab-case syntax', html`
I should be red
`, ({ get }) => { get('span').should(haveAttribute('style', 'background-color: red;')) } ) test('style attribute object bindings are merged with existing styles', html`
I should be red
`, ({ get }) => { get('span').should(haveAttribute('style', 'display: block; color: red;')) } ) test('CSS custom properties are set', html`
I should be red
`, ({ get }) => { get('span').should(haveAttribute('style', 'color: var(--custom-prop); --custom-prop:#f00;')) } ) test('existing CSS custom properties are preserved', html`
I should be red
`, ({ get }) => { get('span').should(haveAttribute('style', 'color: var(--custom-prop-b); --custom-prop-a: red; --custom-prop-b:var(--custom-prop-a);')) } )