cssstyle
cssstyle copied to clipboard
Invalid hexadecimal color value is parsed as valid
The following test fails because style.color === 'rgb(18, 52, 86)':
test('invalid hex color value', () => {
var style = new CSSStyleDeclaration();
style.color = '#1234567';
expect(style.color).toEqual('');
})