In TemplateStyles, I ran into a case where I wanted to select .mw-parser-output directly. The stupid solution doesn't work:
.mw-parser-output { background: #FAFCFC; border-radius: 8px; border-left: #006666 solid 5px; border-top: #006666 solid 5px; border-right: #660033 solid 5px; border-bottom: #660033 solid 5px; padding: 8px; font-size: 100%; }
where the output is .mw-parser-output .mw-parser-output { ... } which doesn't work because I was shooting for a doubled class selector, not the descendant combinator. Neither does the crafty solution:
body.rootpage-User_Iridescent { ... }
which results in CSS that looks like .mw-parser-output body.rootpage-User_Iridescent { ... }. Which obviously doesn't work.
The expected output in each case was .mw-parser-output.mw-parser-output { ... } or body.rootpage-User_Iridescent .mw-parser-output { ... }. Probably should consider both in general anyway.
This is very much an edge case and it's not exactly something I'd like to see in the wild (if indeed it should be supported, or if in fact was discounted at an earlier date). The particular conversation which invoked this request is this request by WAID, where the user in question has a classic talk page styled-and-unclosed div presumably preventing her from using the Reply Tool. The div in question is in User:Iridescent/Talk header, transcluded to User talk:Iridescent. This solution would have allowed me to remove that div. (I can see no other reason why she should be prevented on that page.)
Tagged for DiscussionTools because maybe, just maybe, there's some other root cause going on there. Or the tool should be able to tell what's going on, or something. :)