Of course. That was the distinction I was making. Sorry for not making my point clearer.
Combination selectors (i.e. no space) work as expected. Descendant selectors (i.e with space) do not. I have not tested children selectors (i.e. “>”) or sibling selectors (i.e. “+” and “~”). I don’t know whether those are omitted. My point is that if the ancestor is not used, the selector is not needed in the app and it should be omitted. Hope that’s clearer… ;-) Harbs > On Jun 1, 2018, at 11:51 AM, Idylog - Nicolas Granon <[email protected]> > wrote: > > May I remind that the space between two selectors *is* significant. > > Hope this helps > > Nicolas Granon > > > >> -----Message d'origine----- >> De : Harbs [mailto:[email protected]] >> Envoyé : vendredi 1 juin 2018 10:40 >> À : [email protected] >> Objet : Descendent selector issue >> >> TitleBar has the following CSS in defaults: >> >> TitleBar .TitleBarTitle { >> font-weight: bold; >> padding: 0; >> margin: 0; >> } >> >> This seems to cause the CSS to be always output even if TitleBar is not >> used. >> >> Interestingly, the following CSS >> ToggleTextButton.selected >> { >> background-color: #d8d8d8; >> border: 1px solid #808080; >> padding: 4px; >> } >> >> does get omitted if ToggleTextButton is not used. >> >> Is it correct to assume that this is a bug and if the parent/ancestor >> the selector is not used, the CSS should be omitted? >> >> Harbs >
