cssstyle icon indicating copy to clipboard operation
cssstyle copied to clipboard

Opaque hexadecimal color values should be resolved to rgb

Open cdoublev opened this issue 3 years ago • 0 comments

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.

cdoublev avatar May 04 '21 08:05 cdoublev