Yes yes, we all know what a comma between selectors means.
This is different. I thought I knew CSS pretty well, but today I came across something I've never seen before - a comma between declaration blocks. I've been using clean-css, and it generated this minified, cleaned output (I've re-inserted some whitespace for readability):
body .container
{
color:#EEE
}
,
.navbar-default .navbar-nav>.active>a:hover,
h1
{
color:#000
}
Notice the comma (which I've placed on its own line) after the closing curly brace in the declaration block for body .container. Is this valid CSS? If so, what does it mean?
My input CSS for clean-css was as follows:
body .container {
color: #EEEEEE;
}
h1{
color: #000;
}
.navbar-default .navbar-nav > .active > a:hover, {
color: black;
}