View Single Post
Old 09-17-2019, 07:00 PM   #13
Brett Merkey
Not Quite Dead
Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.
 
Posts: 194
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
Quote:
I'm confused on how combinators, tags, and classes get put into alphabetical order.
Good question. If you are asking about how to access the tool within Calibre, well, it is mercifully hidden within the Edit > Preferences menu within the Calibre Edit module.
If you are asking what alphabetical order means within a potential zoo of combinators, contextual selectors, pseudo-classes and pseudo-elements, then a lot of head-scratching awaits you when you actually test the tool.

Take a very simple contextual selector as an example: it is obvious that rules for blockquote will come before body in a sorted sheet. But where does the contextual selector blockquote p (styling paragraphs within a blockquote) reside in the sort? Hint: nowhere near blockquote.

Sorting a sheet may be of use if you are dealing with a huge jumble of CSS and you need to find something — but that something you want to find needs to be real simple and you need to remember to unsort immediately to retain control of the cascade.

Last edited by Brett Merkey; 09-17-2019 at 07:24 PM.
Brett Merkey is offline   Reply With Quote