jamesshore / quixote

CSS unit and integration testing
Other
848 stars 45 forks source link

CSS Property expecting multiple extra parameters #64

Closed Vips19 closed 3 years ago

Vips19 commented 3 years ago

@jamesshore Screenshot (600)

CSS property 'text-decoration: none' is expecting 'none solid rgb(255, 255, 255)' .

Is there any style guide for css properties?

jamesshore commented 3 years ago

Because Quixote doesn't yet have a descriptor for underlines, I presume you were using getRawStyle(). That API returns the exact text provided by the browser (with minor exceptions—see the documentation). So to make this test pass, you'll need to use the none solid rgb(255, 255, 255) rather than none. However, it's still appropriate to use none in your production code.

I'm not aware of an official style guide for CSS properties, but MDN's documentation is excellent.