Your example css here kinda makes me believe that you have a wrong idea about how selectors work. What you have written sounds like your intention is to create a sort of scope with the outer #menu-history-clear-recent-history
selector and then apply the rules to elements matching .checkbox-check
within that outer scope - that is, to match .checkbox-check
elements which are inside #menu-history-clear-recent-history
.
That kind of construction doesn't exist in css and thus this is invalid rule. What you would do instead is like this:
#menu-history-clear-recent-history .checkbox-check { appearance: none !important; background: #e2cfb6; }
The space character
between selectors (the descendant combinator) means "what comes after it needs to be inside what came before it".
More about selectors at MDN