Comments (8)
Which maps to this util for those interested:
Blitz/Blitz_framework/LESS/utils/break.less
Lines 32 to 35 in 8eeb854
So easier fix would be to reset to auto in the amzn-kf8
media query. However I’d really like to test what the root of the issue is first e.g. combo of the 2 props, or only one of those.
I’m not sure their Android app is using a Chrome web view to be honest – may well be their embeddable fork of 2011–2012 webkit – but it’s weird it triggers this "blank" while the props are not officially supported/implemented so out of curiosity, I’d like to check.
from blitz.
OK can reproduce with page-break-inside: avoid;
.
My assumption is that break-inside: avoid
is ignored because it is not supported, and page-break-inside: avoid;
is somewhat implemented but disabled.
Which reminds me of an issue in iBooks I had to debug when consulting for a publisher… Containers spanning multiple “pages” while having page-break-inside: avoid
created a handful of nasty issues: for some reason that one line completely broke fragmentation with such containers of text, so margin-top
was completely off (like 2 or 3 times the value you specified), lines of text were cut off, etc.
I’m wondering whether the “blank” couldn’t be an artefact, although the fact it’s happening with images and captions makes it even weirder. I’ll ask on eprdctn.
from blitz.
I always use "auto" for the Kindle CSS file. Up until now, the only thing I notice is that Kindle completely ignores "avoid", and "auto" is fairly useless for keeping elements together. Haven't experienced the "blanking". About ibooks, I'm concerned, bc I DO use page-break-inside: avoid; across multiple pages (sidebars) as a regular element. Unaware of nasty issues? What are they? What's the fix?
from blitz.
@simjon In my experience, triggering the iBooks’ bug took quite a long container with page-break-inside: avoid
(like at least 4–5 pages) so I encountered that one on one occasion – but was able to reproduce it in a sample file.
That was back in 2015, and although I can’t share the recap/screenshots, I can see it also happened in Kobo on iOS. As anecdata, the container was so long that it would create a blank page in ADE for instance.
from blitz.
P sure there are a few of those instances floating around out there in my universe. Will work to avoid—erm, and auto. Thanks.
from blitz.
Thanks again for the quick fix, @JayPanoz.
Random side note: this also fixes an odd issue I had with nested figures (which had essentially figure > figure + figure { display: inline-block}
which would lead to odd floating as well as distorted image aspect ratios.
If they could at least switch from phantomjs to puppeteer...
from blitz.
No problem, thank you again to both of you for reporting the issue and providing useful details. :-)
Re phantomjs, don’t quote me on that but I guess part of the reason why they’re not rushing to change it while it’s been abandoned for a while is that it may well offer a more accurate preview than anything else.
Indeed, if you’re checking their open source code for Kindle eInk devices for instance, you’ll literally find a fork of Webkit circa 2012 in there, with a few proprietary extensions. It’s been living in quasi-complete isolation of Vanilla Webkit, which explains why there are so many modern CSS modules not supported for instance.
So ironically, switching to Puppeteer (or something else) could even create more problems than it would solve for them – otoh they created those problems for themselves, by tying so much the the ebook format instead of the rendering engine so it’s really hard to feel pity for the people who made those tech decisions.
from blitz.
I was trying to add a reaction emoji to your comment but none felt appropriate 😉 I had no idea they had forked phantomjs that long ago -- amazing (in a terrifying way).
Thanks again for the fix!
from blitz.
Related Issues (20)
- Feedback and Support HOT 3
- Portrait/full page image styling HOT 2
- small-caps text-tranform HOT 4
- Review + test break-before and break-after HOT 1
- Consider removing AccessibilityAPI and AccessibilityControl from Template metadata, and keep only the essential items HOT 1
- Table cell padding HOT 1
- Consider moving Kindle stylesheet into base
- Consider removing MQ plugin
- Internationalization HOT 1
- Cropped numbers in lists on iPhone HOT 3
- Please tag the 1.4.1 release HOT 1
- i18n: add support for no paragraph indents, standardized bottom margins HOT 11
- Tables: Why is td padding-left only 10px? HOT 3
- Why specify a fixed line height of 1.2 in typo.less? HOT 1
- [Reset] nav ol HOT 2
- Double-check clean-css optimisations HOT 1
- Add visual regression tests for dev HOT 1
- How to have asterisms inherit the text color? HOT 5
- [PSA] Sunsetting Blitz HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blitz.