I tried: Disabling CSS, turning safe mode on, restarting the computer. None of this worked. It’s clearly not a custom css problem. Plugins active at the moment are Completr, Dataview, Obsidian Git
I also tried deleting the .obsidian directory, in order to reset the stylesheets. Did not work either.
At the moment of taking pictures, the debug info is as follows. However see image below, with disabled snippets and plugins, the bug still occurs.
SYSTEM INFO:
Obsidian version: v1.4.14
Installer version: v1.4.14
Operating system: Darwin Kernel Version 22.3.0: Mon Jan 30 20:42:11 PST 2023; root:xnu-8792.81.3~2/RELEASE_X86_64 22.3.0
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 3
Restricted mode: off
Plugins installed: 6
Plugins enabled: 3
1: Completr v3.2.0
2: Dataview v0.5.59
3: Obsidian Git v2.22.0
RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.
I can reproduce something similar if I scroll in the Page preview window.
> [!NOTE] Title
> ![[neko.jpg]]
> [!NOTE] Title
> ![[the-ex.jpg]]
SYSTEM INFO:
Obsidian version: v1.4.14
Installer version: v1.4.14
Operating system: Darwin Kernel Version 22.6.0: Fri Sep 15 13:41:28 PDT 2023; root:xnu-8796.141.3.700.8~1/RELEASE_ARM64_T6000 22.6.0
Login status: logged in
Catalyst license: supporter
Insider build toggle: on
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 0
Plugins enabled: 0
RECOMMENDATIONS:
none
Glad to know I’m not the only who experienced this! In the discord I had trouble finding anyone who had the same bug!
@WhiteNoise is it related to a css class or just renderer? The bug only occurs exclusively on cmd previews for me, but not automatic ones in the document. I may be uninformed enough behind how the browser renderer works
@ariehen@asdasUPDATE I have a script that fixes the issue! It is some black magic for me, since I’m not a CSS expert, but the value --callout-blend-mode is set to darken, which seems to create the bug.
/*
* This script resets the blend mode of callouts.
* Attempt to fix https://forum.obsidian.md/t/cmd-preview-bugged-with-images-in-callouts
*/
/* :root {
--callout-blend-mode: normal;
} */
.callout {
mix-blend-mode: normal;
}
Could someone try this out and tell me if this script fixes the problem?
Thank you, very much, @ariehen, will this be added as a fix (or well, the darkening blend style remove) in Obsidian, or is it meant to be with external snippets?
The workaround provided in this thread is valid, however we would like to rework our css code so that it mix-blend-mode is not used. This bug will remain open until it happens.