cssstyle
cssstyle copied to clipboard
Opaque hexadecimal color values should be resolved to rgb
This test expectation is wrong:
style.color = '#ffffffff';
expect(style.color).toEqual('rgba(255, 255, 255, 1)');
In Chrome/Firefox:
target.style.color = '#ffffffff'
console.log(target.style.color) // "rgb(255, 255, 255)"
Though I believe that this is not described in any specification.