|
|
#1 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 569
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Some css are automatically removed by Editor
Dear Kovid,
The Editor seems to remove all css items related to :root Let's say I have this: Code:
:root {
--margin-top: 0.5em;
--magin-bottom: 8em;
}
div.x {
margin-top: var(--margin-top);
}
div.y {
margin-bottom: var(--margin-bottom);
}
|
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,610
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
works fine for me, you probably have the auto beatify setting enabled. :root is not supported by the library used for beautification.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 569
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Ah, I didn't know that. Thanks.
|
|
|
|
|
|
#4 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 569
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Dear Kovid,
I think the Editor supports :root but not the viewer (?). Please see the attachment when you have a moment. There are two issues there, (i) :root and (ii) border-image. I don't know why the viewer doesn't show the svg border image in the second file, while Editor does. |
|
|
|
|
|
#5 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,610
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Switch the viewer to flow mode, it might work there, but it is never going to work in paged mode. And why are you using :root anyway, it's a synnym for html anyway.
|
|
|
|
| Advert | |
|
|
|
|
#6 | |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 569
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Quote:
How about the svg border-image? I wonder why the second page doesn't show it while the first with no problem. Last edited by nqk; 07-20-2020 at 02:24 AM. |
|
|
|
|
|
|
#7 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,610
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Because paged mode splits up the view using CSS columns, applying anything to the entire document is meaningless in paged mode.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Editor shuts down automatically | mathil | Editor | 26 | 02-19-2020 06:20 PM |
| a-z css editor solution | rjwse@aol.com | Editor | 4 | 04-07-2018 02:09 PM |
| Kobo Aura H20 bottom space not removed via css. | masterz87 | Kobo Reader | 18 | 01-22-2017 11:47 AM |
| [old thread] non breaking spaces (* and  ) automatically removed | artoros | Sigil | 31 | 09-04-2014 07:23 PM |
| Tweak epub and Simple CSS Editor | Shadowman123 | Calibre | 11 | 09-30-2010 11:07 AM |