cssstyle icon indicating copy to clipboard operation
cssstyle copied to clipboard

Invalid hexadecimal color value is parsed as valid

Open cdoublev opened this issue 4 years ago • 0 comments

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('');
})

cdoublev avatar May 04 '21 09:05 cdoublev