Skip to content

Invalid hexadecimal color value is parsed as valid #136

@cdoublev

Description

@cdoublev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions