CSS rgba Background Color Validation

Posted by SHiNKiROU on Stack Overflow See other posts from Stack Overflow or by SHiNKiROU
Published on 2010-05-08T18:25:49Z Indexed on 2010/05/08 18:28 UTC
Read the original article Hit count: 257

Filed under:
|
|

I found a weird CSS validation result: when rgba() is used to background, it does not validate, however, the workaround is rgba() for background-color. Why that rule exists? Is it a validator's bug?

Try to validate the following there, and you can see the result:

div {
   background: rgba(0, 0, 0, 0.5);
}

and

div {
   background-color: rgba(0, 0, 0, 0.5);
}

© Stack Overflow or respective owner

Related posts about css

Related posts about css3