View Single Post
Old 06-28-2025, 05:27 PM   #66
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,830
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Falkor View Post
@supports seems to work in ADE 4.5 when using epub3.
Do the try and write:

Code:
@supports(display: flex) {
   p {
      background: yellow;
   }
}
ADE 4.x supports "display: flex" so if @supports is honored, then paragraphs should have a yellow background color. Once you check the property is supported, erase the code to do the try.

Quote:
'Calc()' seems to work as well.
Do the try for example by setting a width of an element of "width: calc(100% - 10em);" and watch if the element's width was reduced.

Quote:
The problem here is 'float'. It makes all the difference. Removing it will make your file work fine in ADE and Books.

Maybe it takes some additional settings to make 'float' work as intended?
If you don't set "float" then you will have fragmentation in your epub. But you didn't say if you tested it or not in Thorium and Calibre. You said that my sample didn't work there and in the screenshoot I posted you can see that the epub looks fine those ereaders. My code is not for ADE 4.x; as I said in my previous post, ADE needs additional statements in order the things work there.

EDIT: "calc()" works under ADE 4.5; @supports it doesn't.

Last edited by RbnJrg; 06-28-2025 at 05:36 PM.
RbnJrg is offline   Reply With Quote