|
|
#1 |
|
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 609
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Error check: "expected selector X to come before Y"
The "Check books" error for malordered CSS rules says:
Expected selector "X" to come before selector "Y" However, the associated details only give the position of rule X, not rule Y (compare with the error for mismatched tags, which gives the position of both tags). Would it be possible to show the position of both selectors in the error message to make it easier to locate Y? (Or better still, since the checker can obviously recognise the expected order of rules, have an autofix option which reorders all the rules automatically?) |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,851
Karma: 28586150
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
These come from a third party library (stylelint) not calibre code, so I'm afraid not.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 609
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Bah. Oh well. How a way to paste the 2nd rulespec from the message on the right into the "find" box so that special characters like [...] and (...) and ^= are escaped? As it is I have to select, copy, paste, and then look for specials and escape them manually.
|
|
|
|
|
|
#4 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 480
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
How does it hurt to have Expected selector "X" to come before selector "Y"?
From what I can tell books render without issue with this. |
|
|
|
|
|
#5 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,744
Karma: 9501034
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Some declarations might need to be inherited or replaced with a different value.
|
|
|
|
| Advert | |
|
|
|
|
#6 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,851
Karma: 28586150
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Search in text mode rather than regex and special characters in the search expression are automatically replaced.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calibre 6.11: "Remove CSS Rules" and "Check Book" Conflicts | enuddleyarbl | Editor | 10 | 01-08-2023 09:33 AM |
| Epub 2.0.1 validator error: "Error while parsing file: element "img" missing required | justin-b-918 | ePub | 6 | 04-26-2022 11:02 AM |
| Selector - bringing "open with" menu back | nhedgehog | PocketBook Developer's Corner | 2 | 02-27-2017 03:47 AM |
| Bugs "Sanity Check epub" and "Failed Release date" on V 0.91 | qkiazd | Sigil | 5 | 12-03-2015 05:01 AM |
| How to fix "Extra Titles" in Database in " Check Library - Problems Found | millan | Library Management | 33 | 07-16-2015 08:12 AM |