![]() |
#1 |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Live CSS oddity
I've just noticed something which is not terribly important but which niggles my OCD tendencies.
A CSS rule "page-break-before: always" is displayed in the Live CSS panel as "break-before: page". But if you have a rule that really says "break-before: page", the Check Book validation flags it with a warning: "Unknown property name". Presumably there's a mismatch between the CSS version used by Live CSS and Check Book. Not life-threatening, but niggly. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,837
Karma: 26594666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
break-before is CSS 3 so not supported by check book. Live CSS uses a browser engine, which does support CSS 3.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Perfectionist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 12802
Join Date: Apr 2014
Device: none
|
@Kovid
Do you plan to upgrade Check Book to support CSS3 at some point? |
![]() |
![]() |
![]() |
#4 |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
I still find it interesting that the CSS2 rule is understood and transformed for display purposes into the CSS3 equivalent.
CSS3 support for Check Book would be a Good Thing IMHO, as apart from this niggle, there are other common CSS3 constructs used in modern ebooks that are reported as warnings, or sometimes even as errors (e.g. the use of "vh" in a height specification is reported as an error). |
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,837
Karma: 26594666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
https://github.com/kovidgoyal/calibr...79b17354843916
@Psstphok nothing interesting about it. page-break-* properties have been deprecated and replaced by break-* properties so browsers automatically replace them. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Perfectionist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 12802
Join Date: Apr 2014
Device: none
|
That was quick, many thanks!
|
![]() |
![]() |
![]() |
#7 | |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Live CSS Not Working after Update | retiredbiker | Editor | 11 | 06-01-2018 02:39 AM |
Question on "Live CSS" | retiredbiker | Editor | 25 | 12-29-2017 10:35 PM |
Oddity with Live CSS | BobC | Editor | 3 | 06-15-2014 07:22 AM |
Live CSS panel clickable links | Section8 | Editor | 4 | 06-07-2014 10:55 AM |
Live CSS questions | DrChiper | Editor | 23 | 05-26-2014 11:33 AM |