|
|
#1 |
|
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Jul 2023
Device: Kindle ColorSoft
|
Using :has() pseudo-class ?
Hello, I have an issue trying to use :has() pseudo-class selectors in e-books.
Example: .ChapterS:has(+.SubChapter) { margin-bottom: 1em !important; color: red !important; } The Kindle conversion logs show this: Reading TOC from NCX... Merging user specified metadata... Detecting structure... Inserting metadata into book... Flattening CSS and remapping font sizes... Ignoring CSS rule with invalid selector: '.ChapterS:has(+ blockquote)' (The pseudo-class :has() is unknown) Ignoring CSS rule with invalid selector: '.ChapterS:has(+ .ChapterLocation)' (Expected an argument, got <DELIM '.' at 16>) Ignoring CSS rule with invalid selector: '.ChapterS:has(+ .SubChapter)' (Expected an argument, got <DELIM '.' at 16>) Ignoring CSS rule with invalid selector: '.ChapterS:has(+ blockquote)' (The pseudo-class :has() is unknown) Ignoring CSS rule with invalid selector: '.ChapterS:has(+ .ChapterLocation)' (Expected an argument, got <DELIM '.' at 16>) Ignoring CSS rule with invalid selector: '.ChapterS:has(+ .SubChapter)' (Expected an argument, got <DELIM '.' at 16>) Ignoring CSS rule with invalid selector: '.ChapterS:has(+ blockquote)' (The pseudo-class :has() is unknown) Calibre supports them correctly for the display in the editor (text displays correctly, tested with some color tags) but the conversion doesn't. Is this an issue in Calibre or in KFX Output ? (unclear to me) |
|
|
|
|
|
#2 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,289
Karma: 154365101
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pseudo-elements | Dani82 | KOReader | 2 | 07-18-2023 03:17 AM |
| descendant combinator w/ pseudo class broken? | rjwse@aol.com | Calibre | 1 | 10-21-2019 11:53 PM |
| Aura H2O MicroSDHC card class 4 or class 10? | chipro12 | Kobo Reader | 5 | 07-04-2015 02:24 AM |
| PRS-650 SD Card Importance? SDHC, SDHC Class 4, Class 10 etc is it important | Renji | Sony Reader | 11 | 12-03-2011 12:30 PM |
| Pseudo-crash w/V 6.39 | petercreasey | Calibre | 12 | 02-11-2010 05:59 AM |