View Single Post
Old 10-16-2020, 11:50 PM   #7
Thasaidon
Hedge Wizard
Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.
 
Thasaidon's Avatar
 
Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
I apologise I think I have misled some people as to what I was asking. I should have KISS'ed it (Keep It Simple Stupid)

Simply put, a CSS nay contain the following rules

.chapterHeader {
height: 60px;
border: 1px solid #000;
display: block;
margin-bottom: 20px;
background-color: #FFF
}

.chaprHd {
height: 60px;
border: 1px solid #000;
display: block;
margin-bottom: 20px;
background-color: #FFF
}

I expected Merge Identical CSS Rules to change this to something like

.chaprHd, chapterHeader {
height: 60px;
border: 1px solid #000;
display: block;
margin-bottom: 20px;
background-color: #FFF
}

i.e. To produce a stacked rule and delete the two original rules

From a very hazy memory of when this feature was introduced this is what I thought it did,

If I understand Kovid's answer to my rambling question , correctly, the answer is NO. It does not work like that.

If that is the case would a plugin or Regex guru would like to help.

The reason I would find this useful is in the bBook, I mentioned. It had over 1000 lines in the CSS, all used, which included duplicated rule sets, each having a unique Selector name.

Reducing clutter by having a smaller number of rule sets with stacked Selectors would be easier to follow.

I hope this clears up any confusion I causedr

Last edited by Thasaidon; 10-16-2020 at 11:52 PM.
Thasaidon is offline   Reply With Quote