As others have stated there is no native solution for this problem.
But in current year you can achieve this with CSS Nesting, a feature adapted from CSS pre-processors like LESS by Chrome and many other browsers. Look here to check which browsers support it.
You do it like this:
/* V1 */
#elemID {
&, & * {
/* Your style here */
}
}
&
is like a copy of the enclosing selector so with this you basically achieve the #elemID, #elemID *
selector you've mentioned but only writing #elemID
once.
If you plan to have many similar selectors you can make the code slightly more compact like this:
/* V2 */
#elemID { &, & * {
/* Your style here */
}}
I do not recommend it for production or any publicly published code but if you have a modern browser it is great for personal purposes i.e. applying your custom styles to various websites.
As mentioned in the comments the formula can be even simpler/shorter:
/* V3 */
#elemID {
&, * {
/* Your style here */
}
}
/* V4 */
#elemID {
*, & {
/* Your style here */
}
}
/* V5 */
#elemID { &, * {
/* Your style here */
}}
/* V6 */
#elemID { *, & {
/* Your style here */
}}
All 6 versions mentioned here are equivalent, but I personally would prefer V3 or V5 over others.