theflashbum/fcss — Issue #18: Grouping selectors
Author: micapam
Created: 2012-02-17 04:41:21+00:00
State: open

Thanks for this excellent library, it's proving really useful to me and I'm very grateful for you for releasing it to the community.

I'm a bit concerned about the stylesheet syntax that FCSS accepts. In particular, sharing style attributes across more than one selector. Say if I want my MessagePanel and ErrorPanel to share the same background colour, I believe (according to the quick start guide) that I am supposed to use this notation:

```MessagePanel ErrorPanel {
backgroundColor: #aaccee;
}```

Now, I know FCSS doesn't pretend to be a full implementation of CSS. However, shouldn't the subset of CSS functionality that it offers be compatible with standard CSS? In standard CSS, that notation would mean "apply these styles to any ErrorPanel instance that is a child of a MessagePanel". The proper notation for grouping selectors is to use a comma between them (see here: http://www.w3.org/TR/selectors/#grouping), which would look more like:

```MessagePanel, ErrorPanel {
backgroundColor: #aaccee;
}```

Is there a particular reason you've chosen to deviate from the standard? Or, am I mis-reading the FCSS documentation?