-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: __ibooks_internal_theme selector no longer working in compatibility.css #377
Comments
On my iPad, they no longer work. Not sure if that's a different app than the desktop version. Fortunately it degrades to still work for titlepage pngs and so on but it doesn't look ideal. I've found other people complaining about the same thing around the web but it looks like there's no solution yet. |
OK, I’ll test on my phone and see if I can replicate there. What OS version are you running? |
iOS 12.4.9 |
I guess it’s Simulator time then :) Let’s get XCode installed. |
I’ve replicated your issue on my iOS 14 phone, so this is a wider problem. I’ve checked my macOS copy of Books (macOS 11, Books v3.0) and it still has the correct theme names that we’re using in compatibility.css: |
Also laughing at this potential solution from Apple’s Books authoring guidelines:
|
You know, |
Or maybe we don't have to worry about double inverting, I suppose applying invert to the same selector will just override one with the other depending on specificity? And if they're the same then it wouldn't matter anyway. |
Yep, no worries about double-inversion (unless the one of the filters is on a parent or something). Good idea though, I’ll move the default media query to core.css. |
I’m still assuming this won’t fix it for your iPad. Perhaps we should remove the theme hack completely? That would mean that older Apple Books would never get the inverted images in dark mode, but that’s presumably better than older MacOS Books working fine and older iOS Books being completely broken. |
Yes, I think you're right. If older devices aren't respecting the selector then we should show them pngs with a white background. However we can exclude our pre-generated PNGs like the titlepage and logos, because those have a built-in white border. (I think it may already do that? I don't have it in front of me right now.) |
In
compatibility.css
we target iBooks in night mode to invert images. But sometime in mid-2020 this selector stopped working. We need to figure out what an alternative solution is, if there is one. If not, we should remove this CSS.The text was updated successfully, but these errors were encountered: